How a Locksmith Programs a Car Key, Step by Step

Your VIN yields the factory key code, the blade is shaped to that code in the van, and a programmer plugged into the diagnostic port enrolls the new key with the immobilizer, at the car.

Published 2026-09-30 · Updated 2026-10-01

Short answer: Programming a car key is two jobs. First the blade gets cut to the factory key code, found through the VIN. Then a tool on the diagnostic port opens the immobilizer, adds the new chip and erases any lost key. Some cars demand a PIN or a timed wait. The car must be present, since its memory is what changes.

Most people picture a key being copied. With a chip key, standard on most cars since the late 1990s, the copy is the easy half. The other half happens inside the car's computers, so the work gets done beside the car.

Here is a visit in the order it runs: the code, the cut, the tool on the port, adding and erasing keys, the waits some automakers build in, and what a dealer does differently. It ends with the makes and years where we point you to the dealer on the first call.

The key code, then the cut

Nearly every car leaves the factory with a key code, a short reference that translates into the depth of each cut on the blade. Many automakers release those codes, and the security PINs some immobilizers ask for, to locksmiths registered through NASTF, the National Automotive Service Task Force, generally one VIN at a time.

Those requests are generally expected to be backed by the owner's documents, which is part of why a no-key job starts with proof the car is yours: the title or registration, with an ID whose name matches it.

The code goes into a computer-controlled cutter in the van, which works to factory depths instead of tracing a worn original, so the new blade fits the way the first key did when it was new. The same machine cuts edge-cut blades and mills the center track of a laser-cut key. When no code is on file, the cuts can often be read from a working key or decoded at the door lock.

The tool on the diagnostic port

Nearly every car sold in the US since the 1996 model year has an OBD-II port, usually under the dash on the driver's side. Repair shops use it to read engine trouble codes. On most cars, a key programmer uses the same socket to reach the immobilizer, which, depending on the make, lives in the engine computer, the body control module or a separate unit behind the dash.

Before it changes anything, the tool reads. It identifies the immobilizer system, shows how many keys are registered, and on some cars pulls the security data it needs straight from the module. It can also read the chip in the new key, which is where a used or mismatched key shows up, before anything is written to the car.

Adding a key, erasing the lost ones

With a working key on hand, most cars go into add-key mode. The tool opens the key memory, the new chip is presented at the ignition or the start button, and the car writes it into an empty slot while the existing keys stay put. Some systems, including most Nissan and Infiniti models, relearn the whole list in one session instead, so a key left at home drops off.

With every key gone, the job runs the other way. The tool clears the key memory, the new keys are registered from blank, and the lost one is no longer on the list, so whoever finds it holds a key the car no longer recognizes. Remote buttons are often paired as a separate step, and a smart key is enrolled for entry as well as starting. Many older Ford systems want two keys programmed after a reset before the engine will run.

PINs, online steps and timed waits

Automakers put obstacles into key programming on purpose, so nobody can add a key in a minute and drive away. Some systems demand a PIN tied to the VIN before they open their key memory. Certain newer Volkswagen and Audi keys add an online step, with the tool connected to a server partway through the job. Others make the tool wait.

The car sets the wait, and the lengths below are approximate. On many Toyota and Lexus push-button cars the timer runs roughly 16 minutes. Many Mazdas from 2016 on hold the tool for around seven, and certain older GM and Ford systems for roughly 10 minutes or longer. We price the job knowing the wait is part of it, so it costs you time on the visit and nothing on the bill.

Why it happens at the car

What gets programmed is the car. A new key arrives with a chip that belongs to nothing, and the list of keys the engine will accept lives in the car's modules. On many systems the car also writes data into the key while registering it, which locks that key to the VIN. That is why a used fob from another car usually refuses a second one.

Programming also runs on the car's own power, with the ignition on for several minutes, so a weak battery gets a jump pack before the tool connects. And the job is not done until the new key fires the engine, the doors lock and unlock with it, and, on a smart key, the handle opens with the fob in your pocket, all tested with you standing there.

What the dealer does differently

The procedure itself is much the same. A dealer technician plugs the automaker's scan tool into the same port, runs the same kind of add-key or reset sequence, and on most cars sits through the same waits. What changes is everything around it: the car must sit in the service bay, the key comes from the parts counter, and programming gets charged separately, typically $100 to $180.

For a spare, that means an appointment and half a day. For a car with no key, the tow truck comes first, at $125 to $200, and a key on order means one to three more days. The van carries key stock and the programmer, so the same work happens in your driveway in one visit, with the drive included. Why we cost less covers the rest.

Limits by make, said on the first call

When a car needs the dealer, you hear it on the first call. For most 2014 and newer Mercedes-Benz models we say up front that the key comes through the dealer, and the same for many BMW G-series cars, such as a 2017 or newer 5 Series. With every Volkswagen key lost, a VIN check shows whether its dashboard is a newer type with no aftermarket route.

Some others we check by VIN before quoting. Lexus service information for the ES and UX from 2019 to 2021 states that a key, once erased, cannot be registered a second time. Recently redesigned Toyotas, the 2022 and newer Tundra and 2024 and newer Tacoma among them, use a newer key system we confirm car by car. And a used fob bought online is, on most makes, locked to its first car, so read us its part number before you pay for it.

Questions people ask

Can a car key be programmed without the car there?

On most cars, no, because the memory being changed sits inside the car. The exception is cloning on some older chip families, where the data from your working key is copied onto a new chip in the van and the car sees a key it already knows. A clone needs that original key, and it stops working if the original is ever erased from the car.

Will adding a new key erase my other keys?

On most cars, no. The new key takes an empty slot and the keys you already have carry on working. Some systems relearn the whole list every time, and any key not presented during that session gets dropped. We ask which you have on the call, and on those cars we ask you to bring every key you own to the appointment.

What is an immobilizer PIN?

It is a security code tied to your VIN that some immobilizers demand before they will open their key memory. Many automakers release it to their dealers and to locksmiths registered through NASTF, and on some systems the programming tool reads it from the car's module. You never need to find it yourself; we obtain it as part of the quoted job.

Is a key a locksmith programs as good as a dealer-programmed key?

In the car's memory, they are identical. The immobilizer stores the key's code, not who added it, and a key added through the port by our tool sits on the same list as the ones the factory added. The keys themselves are factory parts or OEM-grade equivalents carrying the right chip, and a year of warranty backs the key, its remote buttons and the programming.

Get the dealer's key without the dealer's bill

Call or text (619) 340-1518 with the car's year, make and model. If a dealer already quoted you, send that quote over for our answer on the same key.

Call (619) 340-1518Text us your car
Call me back

Every day, 7:00 AM to 9:00 PM.

Call (619) 340-1518Text us