How to Open a Locked Window: 3 Lock Types
In this article
If a window lock is stuck or you've lost the key, you can usually open it without breaking the glass. The method depends on the lock type: sliding sash locks, pin locks, and keyed locks each have a specific release. Below are the exact steps for each, plus what to do when a lock is jammed or the key is missing.
What You'll Need
- Flathead screwdriver (small to medium)
- Phillips screwdriver (if screws are visible)
- Pliers or locking pliers
- Thin metal ruler or putty knife
- Bobby pin or paperclip (for pin locks)
- Lubricant spray (silicone or PTFE-based, not oil-based)
- Flashlight
- Key extractor or small tweezers (if a key broke off)
Step-by-Step
Type 1: Sliding Sash Lock (Common on Double-Hung Windows)
- Identify the lock: Look for a metal or plastic tab that slides horizontally over the meeting rail (where the upper and lower sashes meet). It may have a small thumb turn or a simple lever.
- Try the normal release: Slide the tab or turn the thumb latch to the unlocked position. If it moves freely, the window should now open.
- If the tab is stuck: Spray a small amount of silicone lubricant into the gap around the tab and wait 30 seconds. Then gently wiggle the tab side-to-side while pulling it toward you.
- If the tab won't move at all: Insert a flathead screwdriver between the tab and the window frame. Pry gently to lift the tab upward (or outward, depending on its design) while sliding it. Do not force it—if it snaps, you'll need a replacement.
- If the lock is screwed on: Look for two screws on the top or side of the lock body. Remove them with a Phillips screwdriver, then lift the lock off. The window will now open freely.
Type 2: Pin Lock (Spring-Loaded Pin or Push-Button)
- Locate the pin: This lock is usually a small round button or a metal pin that pops out of the window frame when locked. It may be on the sash or the frame.
- Press the pin in: Push the pin inward with your thumb or a flathead screwdriver. It should click and stay recessed, releasing the window.
- If the pin is stuck out: Use a pair of pliers to grip the pin's base and pull it outward slightly, then push it in. Sometimes dirt or paint holds it.
- If the pin is spring-loaded and broken: Insert a thin metal ruler or putty knife between the window sash and the frame, right next to the pin. Slide it along to push the pin inward manually. You may need to do this from both sides.
- If the pin is a keyed cylinder (like a cam lock): See Type 3 below—it uses a key, but the mechanism is similar.
Type 3: Keyed Lock (Cylinder or Cam Lock)
- Check for the key: If you have the key, insert it fully and turn clockwise (usually). If it turns, pull the window open.
- If the key is missing: Look at the lock face. If it has a small screw or clip on the inside (the side facing the room), remove it with a screwdriver. This may allow you to pull the cylinder out, releasing the latch.
- If the lock is a cam lock (a rectangular tab that rotates): Use a flathead screwdriver to turn the slot on the lock face. If there's no slot, use a small Allen wrench or a paperclip bent into an L-shape to fit into the keyhole and turn it.
- If the lock is a deadbolt-style: Use a flathead screwdriver to turn the latch mechanism directly if it's accessible from the inside. If not, you may need to drill out the lock (see Troubleshooting).
- If the key broke off inside: Use tweezers or a key extractor to pull the broken piece out. If that fails, use a small screwdriver to push the broken piece further in, which may release the lock's internal cam.
Common Mistakes
- Forcing the window: Yanking on the sash can damage the track or break the glass. Always work on the lock first.
- Using oil-based lubricants: WD-40 or cooking oil attract dust and gum up over time. Use a dry silicone or PTFE spray.
- Prying the wrong spot: On double-hung windows, prying between the sashes can bend the track. Pry only at the lock area.
- Ignoring paint: If the window is painted shut, the lock may be fine but the sash is glued. Run a putty knife around the frame to break the paint seal before trying the lock.
Tips
- Always try the simplest method first: slide, press, or turn. Most locks are not actually broken—they're just stiff.
- If you're dealing with a keyed lock and you have the key, but it won't turn, spray lubricant into the keyhole and gently wiggle the key. Do not force it—you'll break the key.
- For security, after opening a stuck window, consider replacing the lock with a new one. You can buy a matching replacement at most hardware stores.
- If the lock is corroded, clean it with a small wire brush before lubricating.
- If you're renting, check your lease before modifying or replacing a lock—you may need landlord permission.
Troubleshooting
If the lock still won't open:
- Check for a second lock: Many windows have two locks (one on each side). Make sure both are disengaged.
- Inspect for paint or debris: Use a flashlight to look for paint chips or dirt jamming the mechanism. Scrape gently with a screwdriver.
- If the window is painted shut: Run a putty knife around the entire sash perimeter to break the seal. Then try the lock again.
- If the lock is broken and you have no key: You may need to drill out the lock cylinder. Use a 1/8-inch drill bit to drill into the keyhole, then use a screwdriver to turn the remaining mechanism. This will destroy the lock, so only do this if you own the window or have permission.
- If the window is still stuck after opening the lock: The sash may be swollen from humidity. Use a block of wood and a hammer to gently tap the sash upward (for double-hung) or sideways (for sliding windows).
Frequently Asked Questions
Can I open a locked window from outside?
If the lock is accessible from outside (e.g., a sliding sash lock with a thumb turn), you may be able to use a thin tool to slide it. However, many keyed locks are designed to be inaccessible from outside. For security reasons, we don't recommend attempting to bypass a lock from outside unless you own the property and are locked out.
What if the key is lost?
For keyed locks, you can often remove the lock cylinder if you have access to the interior screws. If not, you may need to drill the lock. Replacement locks are inexpensive and easy to install.
Will lubricant damage my window?
No, if you use a silicone-based or PTFE lubricant. Avoid oil-based products, as they can stain wood and attract dirt.
How do I know which type of lock I have?
Look at the shape: a sliding tab is a sash lock, a round push-button is a pin lock, and a keyhole or thumb-turn cylinder is a keyed lock. If you're unsure, take a photo to a hardware store.
Is it safe to drill out a lock?
Yes, for your own window. It will destroy the lock, but it won't damage the window frame if you drill carefully. Wear safety glasses and drill slowly.
Can I prevent this from happening again?
Regularly lubricate moving parts (twice a year), keep tracks clean, and avoid painting over lock mechanisms. If a lock feels stiff, address it early before it seizes.