How to Replace a File Cabinet Lock
You replace a file cabinet lock by removing the drawer front or the lock's retaining clip, pulling the old cylinder out, and fitting a matching cam lock in the same hole. Most replacements take under 15 minutes with a screwdriver and the right size lock.
On this page (11 sections)
- How do you replace a file cabinet lock step by step?
- What tools do you need before you start?
- How do you remove the old lock from the drawer?
- How do you fit and align the new lock?
- Matching the right replacement lock to your cabinet
- Why does a worn lock still stick after replacement?
- Keyed alike or keyed different: which should you choose?
- Can you add a lock to a drawer that never had one?
- How do you test the replacement before you finish?
- When should you stop and replace the whole cabinet?
- What is the best way to finish the job?
You replace a file cabinet lock by removing the old cylinder and fitting a matching cam lock in the same hole. A screwdriver, a few minutes, and the right lock size handle most drawers, so the job is a straightforward repair rather than a shop visit.
The steps below assume the drawer front and cabinet body are intact and only the locking hardware is worn or missing.
How do you replace a file cabinet lock step by step?
Remove the lock, match the hole, fit the new cylinder, and test the key. Work through these steps in order so you don't damage the drawer front.
- Open the drawer to reach the lock's back side.
- Take out the mounting screw or pry off the spring clip that holds the cylinder.
- Slide the old lock out of the hole.
- Check the new lock's size against the old one before inserting it.
- Feed the new cylinder through the hole and reattach the retaining hardware.
- Turn the key to confirm the cam swings freely, then tighten everything down.
The whole job takes about 10 to 15 minutes per drawer. Put the small parts in a cup so the clip and screw don't roll away.
What tools do you need before you start?
A screwdriver, the new lock kit, and a cloth cover most jobs. Some cabinets use a spring clip instead of a screw, so a small flathead helps pry it loose.
Have a dry lubricant on hand for the first turn of the key. Clear out the drawer first, since a loaded drawer can tip while you work on the lock.
If the old lock won't come out, don't force it. A shot of dry lubricant into the keyway can free a seized cylinder so it turns and releases.
What size lock fits a standard file cabinet?
Most standard cabinets take a 5/8 inch cam lock that fits through the drawer front. Check the hole diameter and panel thickness before buying, because a loose lock won't grip the cam arm properly.
The Bates 3-pack uses 5/8 inch locks, which suits typical office and home drawers. If your cabinet has an odd hole size, compare the old lock's body to the new one side by side.

Three 5/8 inch cam locks keyed alike, so one key opens a whole bank of drawers.
See it on AmazonThe zinc alloy bodies and two keys per lock make this set a sensible pick when you're relocking several drawers at once. Keyed-alike locks are handy if you manage a shared office.
How do you remove the old lock from the drawer?
Reach behind the drawer front and release the retaining clip or screw. Look for a small metal clip that snaps over the cylinder's back end, or a single screw through the cam arm.
Hold the lock steady with one hand while you free the hardware with the other. Pull the cylinder straight out toward the front of the drawer.
Keep the cam arm and any spacer washers with the old lock. They show you how the new one should sit.
How do you fit and align the new lock?
Insert the cylinder from the front and turn the key so the cam arm lines up with the drawer edge. The cam should swing to the locked position against the cabinet frame.
Slide the retaining clip back on or drive the screw in once the cam clears the frame. Don't overtighten, since a crushed clip can lock up the key.
Test the drawer closed before you load it. If the cam catches on the frame, loosen the hardware and adjust the arm.
Matching the right replacement lock to your cabinet
Match the hole size, the cam length, and the keying you want. A lock that's too short won't grip the frame, and one that's too long can jam against the cabinet side.
If your drawer is from a Hirsh Industries cabinet, a model-specific replacement saves guesswork. The Xinafan HI17345 is built for Hirsh W601 to W650 series drawers and fits several common commercial brands without cutting the panel.

A drop-in replacement for Hirsh W601 to W650 cabinets, keyed different for each lock.
See it on AmazonThe keyed-different setup suits offices where each drawer needs its own key. It ships with a spring clip, the lock, and two keys, so the swap uses the same mounting as the original.
Why does a worn lock still stick after replacement?
A new cylinder can still bind if the keyway or cam arm is dry or gritty. That points to lubrication or alignment rather than the lock itself, so clean and lube before you assume the part is faulty.
Spray a dry lubricant into the keyway and work the key a few times. The 3-IN-ONE Lock Dry Lube dries clear and leaves a film that resists corrosion without collecting dust.

A dry lock lubricant that frees a stiff keyway and protects the new cylinder.
See it on AmazonThe attachable straw reaches into narrow keyways, and the formula is safe on metal, wood, and most plastics. Use it on the new lock's first install and again if the key starts to drag.
If a freshly fitted lock still won't turn, the cam may be misaligned or the drawer may be out of square. Our guide to how to fix a file cabinet lock walks through the common causes before you buy another part.
Keyed alike or keyed different: which should you choose?
Pick keyed alike if you want one key for several drawers, and keyed different if each drawer needs its own access. Both work in the same hole, so the choice comes down to how you manage keys.
Keyed alike suits a home office or a single user who doesn't want a ring of different keys. Keyed different suits shared offices where staff should open only their own drawers.
Plan the key system before you order. Mixing both on one cabinet bank gets confusing fast.
Can you add a lock to a drawer that never had one?
Yes, if the drawer front has room for a lock hole and the frame offers a catch point. Measure carefully and drill a clean hole before fitting the cylinder.
A drawer with no factory lock is a bigger job than a straight swap. If you'd rather avoid drilling, our guide to how to lock a file cabinet with no lock covers the alternatives.
If the cabinet is old or flimsy, weigh the repair against a replacement. A file cabinet with lock built in saves the drilling and gives you a tested locking mechanism.
How do you test the replacement before you finish?
Lock and open the drawer three or four times, then pull it hard while locked. The cam should hold the drawer closed and the key should turn without snagging.
Check that the drawer slides freely when unprotected and doesn't rub the cam arm. Wipe away any lubricant overspray from the drawer front.
If you're relocking several drawers, count the keys you'll need and label the spares. A small tag on each key ring saves a search later.
For a bank of drawers that all need new locks, a 3 drawer file cabinet with lock kit covers the common layout in one order.
When should you stop and replace the whole cabinet?
Replace the cabinet when the drawer frame, slides, or rails are bent, not just the lock. A new cylinder can't fix a drawer that won't close square.
Check the drawer slides and the cabinet's square before spending on hardware. If the frame is sound, a lock swap is the cheaper repair.
Worn slides are a separate job, but a loose drawer makes any lock feel stiff. Fix the drawer first, then fit the new lock.
What is the best way to finish the job?
To sum up how to replace a file cabinet lock: remove the old cylinder, match the size and cam, fit the new lock, and test the key before you load the drawer. Clean and lube the new keyway so it turns smoothly from day one.
Pick the Bates 3-pack for several standard drawers keyed to one key, or the Xinafan HI17345 if you have a Hirsh cabinet that needs a direct fit. Keep the 3-IN-ONE dry lube on hand for the first install and the yearly tune-up.
If the old lock still fights you after all of this, our lock repair guide covers the stuck-key cases before you reach for a new cabinet.
Frequently asked questions
Can I replace a file cabinet lock myself?
Yes, a standard cam lock swap is a do-it-yourself job. You need a screwdriver, a lock that matches the hole size and cam arm, and a few minutes to test the key before you tighten everything down.
Does a new file cabinet lock come with a key?
Most replacement lock kits include keys. The Bates 3-pack is keyed alike with two keys per lock, so one key opens all three, while the Xinafan Hirsh replacement is keyed different and ships with its own pair of keys.
Why does a replacement lock need dry lubricant instead of oil?
Oil collects dust and grit inside the tumbler, which can jam the pins. A dry film lubricant dries clear and leaves a protective coating, so the key turns smoothly without attracting dirt over time.
What if the hole in my cabinet is bigger than the new lock?
Measure before you buy. A lock that is too small will spin or sit loose, so match the hole diameter and panel thickness first, then pick a kit like the Bates 5/8 inch locks for standard cabinets.
About this guide: Our look at replacing a file cabinet lock draws on maker specs and Amazon listing details. See how we research.



