Put the credit card into the side of the door.
How to get into a locked door from the outside.
To open a locked bathroom door from the outside place the point of a butter knife into the keyhole if it s a push button lock and turn the knife sideways.
If this doesn t work put a straightened out bobby pin into the lock.
You re going to need a screwdriver with a skinny rod because the thicker rod won t be able to fit through the hole.
Slide the long end of a credit card in between the door frame and the locking side of the door just above where the lock enters the frame.
Then turn the door knob and shake the pin which should cause the lock to open.
If the locking mechanism is a latchbolt the kind of bolt that is spring loaded and has one angled edge and the angled edge is facing away from you you can hook it with a wire hanger.
To open it up all you need to do is thread a coat hanger or hooked piece of wire through the top of the door and open the emergency latch which can also be done by the rope many emergency latches.