Our Short List of 3
- Best for: A vinyl sliding window that needs a simple, strong lock.
- Diecast construction, white, 2-pack
- For vinyl sliding windows, keeps windows securely closed
- Best for: A ground-floor double-hung window that needs a keyed lock.
- Keyed, only unlocks with key
- For aluminum, vinyl, or wood double-hung windows
- 2-in hole centers, heavy-duty zinc diecast, white
- Best for: A cam lock for sliding windows when the hole spacing is close to standard.
- Zinc alloy, white, 2 locks and 8 mounting screws
- Hole pitch 2.08 in, cam and crescent type
- Fits vertical and horizontal sliding windows
All 5 Picks at a Glance
| Product | Specs | Action |
|---|---|---|
| Check price on Amazon | |
| Check price on Amazon | |
| Check price on Amazon | |
| Check price on Amazon | |
| Check price on Amazon |
Key takeaways
- Lock a window that stays shut: sash locks, keyed locks and security bars for sliding and double-hung windows, with real Amazon listings and honest notes.
What's inside
As an Amazon Associate I earn from qualifying purchases. This post may contain affiliate links at no extra cost to you.
Home › Buying Guides › 5 Best Window Locks for Home Security (December 2026)
A window lock is a small piece of hardware that makes a big difference to home security. Most windows come with a basic latch that can be jimmied or forced, while a proper lock holds the sash shut and stops the window from sliding open. The right lock depends on the window type: a sliding window needs a different lock than a double-hung one, and a security bar suits a patio door better than a sash lock.
Verified locks were mixed. The Defender Security U 9819 and the National Hardware sash locks had no verifiable Amazon listing after repeated searches, and Everbilt had none either. This guide lists five verified locks and bars that actually secure a window, with honest notes on which ones are substitutes and where the model numbers disagree.
Quick Picks
As an Amazon Associate we earn from qualifying purchases
| Product | Best for | Key spec from title |
|---|---|---|
| Prime-Line U 9809 Sliding Window Lock | A vinyl sliding window, 2-pack | Diecast, white, 2-pack |
| Prime-Line U 9928 Keyed Sash Lock | A double-hung window that needs a key | Keyed, zinc diecast, 2-in hole centers |
| LUORNG Cam Type Sash Lock 2-Pack | A cam lock for sliding windows | Zinc alloy, white, 2 locks, 8 screws |
| Master Lock 265D Door Security Bar | A bar for hinged and sliding doors | Adjustable 27-1/2 to 42 in, white |
| Ideal Security BK111W Security Bar | A bar for sliding windows and patio doors | Aluminum, extends 15.7-26.75 in |
How to Choose
Window Type: Sliding Versus Double-Hung
A sliding window moves sideways on a track, so it needs a lock that blocks the track or clamps the sash in place. A double-hung window slides up and down, so it needs a sash lock that joins the upper and lower sashes together. A cam lock suits both types, since it rotates to block the sash in either direction. Check the window type before ordering, since a sliding-window lock will not fit a double-hung window and the reverse is also true.
Keyed Versus Keyless
A keyed lock can only be opened with a key, which is the most secure option for a ground-floor window or a window near a door. A keyless lock opens with a thumb turn or a cam, which is faster in an emergency but easier to open from inside. A security bar needs no key at all and blocks the window by length, which suits a rental or a window where a drilled lock is not wanted. Pick keyed for a ground-floor window and keyless for an upper floor.
Material and Build
Diecast zinc is the standard material for window locks, since it is strong, cheap, and easy to mold into a precise shape. Aluminum is lighter and resists rust, which suits a bar that spans a wide window. Steel is the strongest choice for a security bar, but it is heavier and can rust if the finish chips. A lock with a solid metal body and steel screws will hold far better than one with plastic pieces. A solid metal body holds far better than plastic.
Hole Spacing and Mounting
A sash lock mounts with two screws, and the hole spacing must match the holes already in the window, or you will need to drill new ones. Common spacings are 2 inches and 1-15/16 inches, so measure the existing holes before ordering. A security bar needs no holes at all, since it wedges between the sash and the frame, which makes it the easiest install in this guide. Check the mounting style in the listing before you buy. Measure the existing holes before you order a new lock.
The 5 Best Options
Prime-Line U 9809 Sliding Window Lock for Vinyl Windows
- Best for: A vinyl sliding window that needs a simple, strong lock.
- Diecast construction, white, 2-pack
- For vinyl sliding windows, keeps windows securely closed
A vinyl sliding window that needs a simple, strong lock.
The listing showed no featured offers at one crawl, so confirm availability before ordering. Defender Security is Prime-Line’s sister brand, and the U 9809 is sold under both names on the same listing, so it cannot also fill the Defender slot in this guide.
The Prime-Line U 9809 is a diecast sliding window lock in white, sold as a two-pack for vinyl sliding windows. It clamps onto the window track and keeps the window securely closed, and the diecast body is strong enough to resist a forced slide. Two locks cover two windows, or both sides of one wide window, and the white finish blends with most vinyl frames. The diecast body resists a forced slide well.
Watch out for: The listing showed no featured offers at one crawl, so confirm availability before ordering. Defender Security is Prime-Line’s sister brand, and the U 9809 is sold under both names on the same listing, so it cannot also fill the Defender slot in this guide.
Prime-Line U 9928 Keyed Sash Lock
- Best for: A ground-floor double-hung window that needs a keyed lock.
- Keyed, only unlocks with key
- For aluminum, vinyl, or wood double-hung windows
- 2-in hole centers, heavy-duty zinc diecast, white
A ground-floor double-hung window that needs a keyed lock.
This is a substitute for the Defender Security U 9819, since that model had no verifiable Amazon listing after four searches even though the product is definitely sold on Amazon. Keep the key somewhere handy, since a keyed lock is useless in an emergency if the key is lost.
The Prime-Line U 9928 is a keyed sash lock in white that only opens with a key, which makes it the most secure lock in this guide. It fits aluminum, vinyl, or wood double-hung windows, with 2-inch hole centers and a heavy-duty zinc diecast body. A keyed lock is the right call for a ground-floor window, since it cannot be opened from inside without the key. The heavy-duty body resists a forced entry well.
Watch out for: This is a substitute for the Defender Security U 9819, since that model had no verifiable Amazon listing after four searches even though the product is definitely sold on Amazon. Keep the key somewhere handy, since a keyed lock is useless in an emergency if the key is lost.
LUORNG Cam Type Sash Lock 2-Pack
- Best for: A cam lock for sliding windows when the hole spacing is close to standard.
- Zinc alloy, white, 2 locks and 8 mounting screws
- Hole pitch 2.08 in, cam and crescent type
- Fits vertical and horizontal sliding windows
A cam lock for sliding windows when the hole spacing is close to standard.
This is a substitute for the National Hardware sash locks, since the N198-150 and N325-381 models had no verifiable Amazon listing. The listing also showed no featured offers at the last crawl, so confirm availability before ordering.
The LUORNG cam lock is a zinc alloy sash lock in white, sold as a two-pack with eight mounting screws. The cam, or crescent, shape rotates to block the sash, and it suits both vertical and horizontal sliding windows. The hole pitch is 2.08 inches, which is close to the standard 2-inch spacing, and the white finish matches most vinyl frames. The cam action works on vertical and horizontal windows alike.
Watch out for: This is a substitute for the National Hardware sash locks, since the N198-150 and N325-381 models had no verifiable Amazon listing. The listing also showed no featured offers at the last crawl, so confirm availability before ordering.
Master Lock 265D Door Security Bar
- Best for: A patio or sliding door that needs a bar rather than a drilled lock.
- Adjustable 27-1/2 to 42 in, angled bar, floor mount
- White, for hinged, sliding, and patio doors
- Dual-function: door stopper and sliding-door bar
A patio or sliding door that needs a bar rather than a drilled lock.
This is a substitute for the Everbilt sash lock, since Everbilt had no verifiable Amazon listing after two searches. The model number also conflicts: the listing title says 265D, while the model field says 265ECCSEN and 265EC, and one roundup says the 265DCCSEN variant is discontinued, so check the model before ordering.
The Master Lock 265D is an adjustable security bar in white that wedges between the door and the floor to stop a forced entry. It adjusts from 27-1/2 to 42 inches long, with an angled bar and a floor mount, and it works on hinged, sliding, and patio doors. The dual-function design lets it serve as a door stopper or a sliding-door bar, so it covers more than a window lock alone.
Watch out for: This is a substitute for the Everbilt sash lock, since Everbilt had no verifiable Amazon listing after two searches. The model number also conflicts: the listing title says 265D, while the model field says 265ECCSEN and 265EC, and one roundup says the 265DCCSEN variant is discontinued, so check the model before ordering.
Ideal Security BK111W Sliding Window and Patio Door Security Bar
- Best for: A sliding window or patio door that needs a light, rust-proof bar.
- Aluminum, white, extends 15.7-26.75 in
- Child-proof anti-lift lock
- Includes bar, 2 saddles, 2 child-proof clips, installation screws, 0.35 lb
A sliding window or patio door that needs a light, rust-proof bar.
The larger BK110 bar, which extends from 25.75 to 47.5 inches, showed no featured offers at the last crawl and is not used here. The BK111W had no such flag, but measure the window track before ordering, since a bar that is too short will not wedge securely.
The Ideal Security BK111W is an aluminum security bar in white that extends from 15.7 to 26.75 inches, which suits a sliding window or a patio door. It includes the bar, two saddles, two child-proof clips, and installation screws, and the child-proof anti-lift lock stops a child from lifting the bar out of place. At 0.35 pounds, it is light enough to move between windows, and the aluminum body will not rust.
Watch out for: The larger BK110 bar, which extends from 25.75 to 47.5 inches, showed no featured offers at the last crawl and is not used here. The BK111W had no such flag, but measure the window track before ordering, since a bar that is too short will not wedge securely.
Which One Fits Your Situation
A Vinyl Sliding Window
The Prime-Line U 9809 clamps onto the track and holds a vinyl sliding window shut, and the two-pack covers two windows. The LUORNG cam lock is the alternative when the window needs a rotating lock rather than a track clamp. Either one installs with screws in minutes, so the choice comes down to the window frame.
A Ground-Floor Double-Hung Window
The Prime-Line U 9928 keyed sash lock is the most secure pick, since it only opens with a key. It fits aluminum, vinyl, or wood double-hung windows with 2-inch hole centers. Keep the key nearby but out of reach of the window, since a keyed lock is only secure when the key is not sitting in it.
A Patio or Sliding Door
The Master Lock 265D bar wedges between the door and the floor and adjusts from 27-1/2 to 42 inches, while the Ideal Security BK111W bar spans 15.7 to 26.75 inches for a smaller door or window. A bar needs no holes, so it suits a rental or a door you do not want to drill. Pick the bar that matches the track length.
A Window Where Drilling Is Not Wanted
The Ideal Security BK111W bar and the Master Lock 265D bar both install without drilling, since they wedge in place. A sash lock needs screws, so it is the wrong choice for a rental window. A bar can also move between windows, which a drilled lock cannot. A bar is the easiest install in this guide.
Common Mistakes
- Buying a sliding-window lock for a double-hung window, or the reverse.
- Skipping the hole-spacing measurement, so the new lock does not match the old holes.
- Choosing a keyless lock for a ground-floor window that needs a keyed one.
- Ordering a security bar that is too short for the track, so it cannot wedge securely.
- Leaving the key in a keyed lock, which defeats the security it was bought for.
Frequently Asked Questions
What Is the Difference Between a Sash Lock and a Security Bar?
A sash lock mounts to the window with screws and joins the two sashes together, which stops the window from sliding open. A security bar wedges between the sash and the frame by length, with no holes and no screws, which makes it easier to install and move. A sash lock is more permanent, while a bar is better for a rental or a window that needs a quick fix.
Do I Need a Keyed Lock for a Ground-Floor Window?
A keyed lock is the most secure choice for a ground-floor window, since it cannot be opened from inside without the key. A keyless lock is faster in an emergency but easier to open, so it suits an upper-floor window better. A security bar is a good middle ground, since it blocks the window without a key and without drilling.
Can I Install a Window Lock Myself?
Yes, most sash locks install in minutes with a screwdriver and the screws in the box. Measure the hole spacing first, since the new lock must match the holes already in the window or you will need to drill new ones. A security bar needs no tools at all, since it wedges between the sash and the frame by length.
Will a Window Lock Fit Any Window?
No, the lock must match the window type and the hole spacing. A sliding-window lock will not fit a double-hung window, and a sash lock with 2-inch hole centers will not match holes set 1-15/16 inches from each other. Measure the window type and the hole spacing before ordering, and check the listing for the fit range.
Related guides
- Best 48 Volt Golf Cart Batteries: Lead-Acid and Lithium Sets Compared by Cart Type
- Best 3.7 Volt Rechargeable Battery: Sizes, Chemistries, and Which Fits Your Gadget
- Best 3.7 Volt 18650 Battery: How to Read Specs and Spot Fakes
- Best Batteries for 24 Volt Trolling Motors: Pairing, Capacity, and Chemistry
Read next
More from Amazon
Programs that pair well with the guide above. Offers and eligibility are set by Amazon and may change.
A free business account with business pricing and bulk-buying tools for work, shop or home office.
Create a business accountFree shipping on eligible items, Prime Video and more. Eligible new members can start with a free trial.
Start a Prime free trialAudiobooks and podcasts to listen to on the go. Eligible new members can start with a free trial.
Try Audible freeAd-free music streaming. Eligible new subscribers can start with a free trial.
Try Music Unlimited freeAs an Amazon Associate we earn from qualifying purchases.





Write Your Review
No reviews yet. Be the first to share your experience!