The safe code in the Modern Warfare 4 escape mission is found by reading the three-digit numbers scratched onto the walls of the safehouse basement, then entering them on the keypad in ascending order. Enter the code before the timer hits zero to unlock the door and trigger the good ending; miss it and the mission ends with the capture ending instead. You do not need any special gear or prior unlocks to do this — just a clear line of sight on the three clue markings and a steady hand on the keypad.
What You'll Need
- The mission unlocked and loaded from the campaign menu (no co-op partner required).
- A controller or keyboard with working number keys — the keypad accepts both.
- About 90 seconds of uninterrupted time once the timer starts.
- Flashlight or night-vision equipped, since two of the three clues are in dark corners.
- Patience: the numbers are small and easy to misread on a first pass.
Step-by-Step
- Clear the basement before you search. Two enemies patrol the hallway outside the safe room. Take them out quietly so the timer does not start early. If you alert them, the timer begins the moment the alarm sounds, which cuts your window roughly in half.
- Find the first clue. On the left wall of the basement, just past the broken shelving unit, there is a faded number painted in white. Crouch and aim your flashlight at it — the number is easy to miss in the shadows. Note the digit.
- Find the second clue. Behind the boiler on the right side of the room, a second number is scratched into the concrete near the floor. You may need to walk around the boiler to see it. Note the digit.
- Find the third clue. On the underside of the wooden workbench near the stairs, a third number is written in marker. Look up from a crouched position. Note the digit.
- Order the digits. The safe code is always the three digits arranged from lowest to highest. For example, if you found 7, 2, and 5, the code is 257. This ordering rule is consistent across playthroughs; the digits themselves change, but the sort order does not.
- Approach the safe keypad. The keypad is mounted on the wall to the right of the safe door. Interact with it to bring up the entry screen. Do not press any buttons until you have all three digits confirmed.
- Enter the code. Type the three digits in ascending order, then press the confirm button. If the code is correct, the safe door clicks open and the mission advances automatically.
- Grab the intel and exit. Inside the safe is a folder. Pick it up, then follow the objective marker back up the stairs and out the back door. Do not stop to fight — the exit triggers the ending sequence.
- Watch for the ending prompt. Once you clear the doorway, a short cutscene plays. Choosing to hand over the folder gives the good ending; refusing gives the alternate ending. Both are valid endings, but only the good ending unlocks the follow-up mission.
Common Mistakes
The most frequent error is entering the digits in the order you found them rather than in ascending order. The game does not hint at this, and a wrong order simply resets the keypad with no penalty other than lost time. Another common mistake is starting the search before clearing the patrol, which triggers the timer early. Players also misread the number behind the boiler because the flashlight beam washes it out — angle the light from the side rather than straight on. Finally, some players pick up the folder and then backtrack toward the front entrance; the exit only triggers at the back door, so follow the marker.
Tips
Write the three digits down on paper or a phone note as you find them — the timer pressure makes it easy to forget one. If you are replaying the mission, the digit locations stay the same but the numbers themselves randomize each run, so do not rely on memory of the code. Crouch-walking through the basement reduces footstep noise and keeps the patrol from hearing you. If the timer is running low, skip the third clue and try the two you have plus a guess — the keypad allows unlimited attempts, so a quick guess is better than standing still. On higher difficulties the patrol is more alert, so consider taking them out from range before descending.
Troubleshooting
If the keypad will not accept your code, double-check the order — it must be lowest to highest, not the order of discovery. If a clue will not appear, confirm your flashlight is on and that you are close enough to trigger the interaction prompt; the numbers render only within a short distance. If the timer starts before you reach the basement, you alerted a patrol — restart from the last checkpoint. If the safe opens but the folder will not pick up, step back and re-approach; the interaction hitbox occasionally clips into the shelf. If the ending cutscene does not trigger at the back door, check the objective marker — you may be at the wrong exit. Restarting the checkpoint is safe and does not erase progress.
Frequently Asked Questions
Does the safe code change every playthrough?
Yes. The three digits randomize each run, but the rule that they must be entered in ascending order does not change.
Can I open the safe without finding all three clues?
Only by guessing. The keypad allows unlimited attempts, but with 720 possible combinations a blind guess is impractical.
Which ending is canon?
The good ending — handing over the folder — is the one that unlocks the follow-up mission, so it is the intended path.
Does difficulty affect the timer?
Yes. Higher difficulties shorten the timer and make the patrol more alert, so clear enemies before searching.
Can I replay the mission for the other ending?
Yes. Mission select lets you replay from the last checkpoint or from the start, and both endings remain available.
What happens if the timer runs out?
The mission ends with the capture ending and you are returned to the last checkpoint, where you can try again.