Car Theft and Lock Codes

How to Unlock Your Car When Your Keys Are Inside

Locked your keys in the car? Check every door, use a spare or your car's app, or call roadside assistance or a locksmith. Plus why DIY tricks can cause damage.

On this page
  1. The quick answer
  2. If a child, pet or vulnerable person is inside
  3. Check the easy options first
  4. Call roadside assistance
  5. Call an auto locksmith
  6. Call the dealer
  7. Why DIY tricks can backfire on modern cars
  8. Why your car locked with the keys inside
  9. How to avoid getting locked out again
  10. Bottom line

The quick answer

If your keys are locked inside your car, first check every door and the trunk, then try a spare key or your manufacturer’s phone app if your car has remote unlocking. If none of those work, call roadside assistance (through a motoring club, your insurer or your car’s warranty) or a reputable auto locksmith. They can usually open the car without damage, often in a few minutes once they arrive.

If a child, pet or vulnerable person is locked inside, especially in hot or cold weather, call emergency services right away.

If a child, pet or vulnerable person is inside

Temperatures inside a closed car can become dangerous quickly, even on a mild day. If anyone who can’t get themselves out is locked in:

  • Call 911 (or your local emergency number) immediately and explain the situation.
  • Stay with the car and keep talking to the person inside if you can.
  • Follow the dispatcher’s instructions. In a genuine emergency, breaking a window may be the right call, and the dispatcher can advise. Choose the window farthest from the person inside.

Don’t wait for a locksmith or roadside service in this situation.

Check the easy options first

Try every door and the trunk

It sounds obvious, but it is easy to miss in a moment of panic. Walk around the car and try every door handle, the trunk or tailgate, and check whether any window or the sunroof is open. On some cars, one door or the trunk may not have locked properly.

Use your spare key

If a spare is at home, ask someone to bring it, or consider whether a taxi or rideshare to fetch it would be quicker and cheaper than a callout. If your spare is a physical key, it may also be possible to use the hidden key blade from a smart key; check your owner’s manual for how to release it next time.

Use your car’s app or connected service

Many newer cars can be unlocked remotely through the manufacturer’s app or a connected-car subscription service. If you’ve already set it up on your phone, this is often the fastest option. If you haven’t, call the service’s support line; some can unlock the car remotely after verifying your identity, provided the subscription is active.

Call roadside assistance

If you have roadside assistance through a motoring club such as AAA, your car insurance, a credit card, or the manufacturer’s warranty, lockout service is often included. Have your membership or policy details, your location and your car’s make, model and color ready. Ask whether the service is covered before they come out, since some plans limit the number of callouts or charge for lockouts.

Call an auto locksmith

An auto locksmith specializes in vehicle locks and has tools designed to open car doors without damaging them. When you call:

  • Ask for a quote upfront, including any callout or after-hours fees.
  • Ask for the business name and check that the person who arrives matches it.
  • Expect to show ID and proof of ownership once the car is open. A good locksmith will ask; it protects you as well.

Be wary of very low phone quotes that rise sharply on arrival. It helps to know how to tell if a locksmith is legitimate before you’re in a hurry.

Call the dealer

A dealer can sometimes help, especially with remote unlocking through the manufacturer’s service or by cutting a new key from the key code. This is usually slower than a locksmith and you may need to get the car to them, so it makes more sense if you’ve also lost the key rather than just locked it inside.

Why DIY tricks can backfire on modern cars

You’ll find plenty of suggestions online, from coat hangers and slim jims to the idea of using a tennis ball to get into a locked car. Most of these either don’t work on modern cars or risk expensive damage.

Modern doors contain wiring for power windows, locks, speakers and, in many cars, side airbag sensors. Pushing a tool blindly down the window gap can disconnect or damage these parts, scratch the glass or tear weather seals. Prying the door frame can bend it so it no longer seals properly. Repairs can easily cost more than a locksmith would have charged. Professional tools and techniques are designed to avoid these problems, which is part of what you’re paying for.

If you’re curious about the methods professionals use, our guide on whether a car door can be opened without a key explains the general approach without the guesswork.

Why your car locked with the keys inside

Many keyless cars are designed to refuse to lock if they detect the smart key inside, but it can still happen. Common reasons include:

  • a weak fob battery, so the car doesn’t detect the key
  • the key being in a spot the car’s antennas can’t sense well, such as the trunk or a bag
  • auto-lock features that lock the doors after a period of time or when the car is unlocked but no door is opened
  • a fault in the locking system

If it keeps happening, it is worth having it checked. We cover this in more detail in our article on whether a car can lock itself with keys inside.

How to avoid getting locked out again

  • Keep a spare key at home, and consider giving one to someone you trust nearby.
  • Set up your manufacturer’s app now, while you have access to the car.
  • Replace the fob battery when you notice reduced range or a low-battery warning.
  • Get in the habit of keeping the key in your hand or pocket until the door is shut and locked.
  • Avoid hiding a spare key on the outside of the car. Thieves know the usual places, and it undoes much of the work you’ve put into keeping your car secure.

Bottom line

When your keys are locked inside your car, start with the simple checks: every door, the trunk, a spare key and your car’s app. If those fail, roadside assistance or a reputable auto locksmith is usually the quickest damage-free option. Skip the coat hanger, and if anyone is trapped inside, call emergency services straight away.

The complete guide to car theft and lock codes

How Thieves Steal Car Lock Codes
Read the guide

Keep exploring

Guides from other topics

All topics →