DayZ2.netDayZ wiki · Survival · Guides · DayZ 2 news
Menu, guides & wiki

DayZ Wiki › Guides & tools › Locks & keys

A watchtower and fence base

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

ItemWhat it locksNotes
Combination LockFence gatesThree or four dials. Found in industrial and farm loot.
Digital Code LockDoors and fencesNew in 1.30. Takes a PIN, runs on a 9V battery and punishes guessing.
Lock PickOpens vehicle doors and combination locksBreaks after a few uses. Rare, from work loot.
HandcuffsA surrendered playerPolice loot.
Handcuff KeysUnlocks handcuffsPolice loot.
Rifle Case and Rifle Case KeysA long-gun caseNew in 1.30 (Badlands), keys come in colours.
Container KeyLocked shipping containers on SakhalFour colours; match the key to the container.

Bases

Locking a base

  1. Build a fence with a gate: see bases and the base calculator.
  2. Attach a combination lock to the gate and set your own code. Write it down outside the game.
  3. Or fit the new Digital Code Lock and keep a spare 9V battery for it.
  4. 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.

Survival

The basicsWhat’s wrongWeather & bodyFood & waterThreatsGear & travel

Tools

What can I craft?Base calculatorBlood type checkerWeight planner

Tier lists

WeaponsBackpacksArmourLoot by map

Site

HomeNewsDayZ WikiWhat we know about DayZ 2FAQContact