DayZ Wiki › Guides & tools › Locks & keys
Guide · Bases
Locks and keys in DayZ
A gate without a lock is an invitation. This page covers every lock and key in the game, which ones stop raiders, and how the other side gets through.
At a glance
Every lock and key
| Item | What it locks | Notes |
|---|---|---|
| Combination Lock | Fence gates | Three or four dials. Found in industrial and farm loot. |
| Digital Code Lock | Doors and fences | New in 1.30. Takes a PIN, runs on a 9V battery and punishes guessing. |
| Lock Pick | Opens vehicle doors and combination locks | Breaks after a few uses. Rare, from work loot. |
| Handcuffs | A surrendered player | Police loot. |
| Handcuff Keys | Unlocks handcuffs | Police loot. |
| Rifle Case and Rifle Case Keys | A long-gun case | New in 1.30 (Badlands), keys come in colours. |
| Container Key | Locked shipping containers on Sakhal | Four colours; match the key to the container. |
Bases
Locking a base
- Build a fence with a gate: see bases and the base calculator.
- Attach a combination lock to the gate and set your own code. Write it down outside the game.
- Or fit the new Digital Code Lock and keep a spare 9V battery for it.
- Do not leave the code on a note in the base.
Raiding
How locks get broken
No lock is permanent. Raiders cut combination locks with saws, pick them with a Lock Pick, or ignore the gate and destroy a wall instead. Explosives are covered in traps and explosives. The best defence is not being found: build away from roads and towns, and keep the most valuable things in a buried stash, not the base.
Vehicles
Car keys
Vanilla DayZ cars have no keys: anyone can drive any car. A lockpick opens locked doors. Many community servers add car keys with mods; see DayZ mods. The safest place for a car is out of sight, under a Camo Net.
Quick answers
Questions people ask
How do you lock a base in DayZ?
Build a gate in a fence and attach a combination lock or the new digital code lock, then set your own code.
What does a lockpick do in DayZ?
It opens vehicle doors and combination locks, and breaks after a few uses.
Do cars have keys in DayZ?
Not in vanilla DayZ. Many modded servers add car keys.
What is the digital code lock in DayZ?
A keypad lock added in update 1.30. It takes a PIN, runs on a 9V battery and punishes wrong guesses.
Keep going
More guides and tools
Checked 8 November 2026 against DayZ 1.30 (PC 1.30.164200, console 1.87). Lock and key data from our item pages.