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-02 · By Value Car Keys. Licensed and insured.

Short answer: A locksmith cuts the blade to the factory code from your VIN, then adds the chip to the immobilizer through the diagnostic port. The same tool erases any lost key. Some cars demand a PIN or a timed wait, and 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.

Below: the visit in six steps, then where the key code comes from, why the car has to be there, what a dealer does differently, and the makes and years where we point you to the dealer on the first call.

The visit, step by step

Each step below happens at the car, in this order, during one visit.

  1. Get the key code from the VIN

    Nearly every car leaves the factory with a key code, a short reference that translates into the depth of each cut. The VIN leads to that code and, on some cars, to the immobilizer PIN. A no-key job starts with proof the car is yours: the title or registration, with an ID whose name matches it.

  2. Cut the blade in the van

    A code cutter works to factory depths instead of tracing a worn original, so the blade fits like the first key did when new. The same machine cuts edge-cut blades and mills the center track of a laser-cut key. With no code on file, the cuts can often be read from a working key or decoded at the door lock.

  3. Connect the programmer to the OBD-II port

    The port sits under the dash, usually on the driver's side, on nearly every car sold in the US since the 1996 model year. Before it writes anything, the tool reads: the immobilizer system, how many keys are registered and the new key's chip, which is where a used or mismatched key shows up.

  4. Add the key, or erase and start over

    With a working key, the new chip takes an empty slot and the keys you have stay put; most Nissan and Infiniti models relearn the whole list instead, so a key left at home drops off. With every key gone, the memory is cleared and the keys present are registered from blank, which drops the lost one.

  5. Wait out the security step

    Some systems demand a PIN tied to the VIN, and certain newer Volkswagen and Audi keys add an online step. Others run a timer: roughly 16 minutes on many Toyota and Lexus push-button cars, around seven on many 2016 and newer Mazdas, and roughly 10 minutes or longer on certain older GM and Ford systems.

  6. Pair the remote and test

    Remote buttons are often paired as a separate step, and a smart key is enrolled for entry as well as starting. The job is done when the new key starts the engine, locks and unlocks the doors and, on a smart key, opens the handle with the fob in your pocket, all tested with you standing there.

Step 4 is where a spare car key visit and a lost car keys visit part ways: one adds to the car's list, the other rebuilds it, and the lost key ends up one the car no longer recognizes. Many older Ford systems want two keys programmed after a reset before the engine will run.

The waits in step 5 are there on purpose, so nobody can add a key in a minute and drive away. The car sets them, and the lengths are approximate. We price the job knowing the wait is part of it, so it costs you time on the visit and nothing on the bill.

Where the key code comes from

Many automakers release key 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 the papers come first on a no-key job.

On some cars the programming tool pulls the security data it needs straight from the car's module instead.

Why the car has to be there

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 immobilizer: depending on the make, in the engine computer, the body control module or a separate unit behind the dash. On most cars the programmer reaches it through the same port repair shops use to read engine trouble codes.

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.

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 San Diego County 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. Service information for the Lexus 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. The dealer-only keys guide sorts the rest.

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: it is part of the programming job, not a paper you are asked for.

Does the car know who programmed the key?

No. The immobilizer stores the key's code, not who added it, so a key added through the port by a locksmith's 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 Value Car Keys at (619) 340-1518 with the car's year, make and model, from anywhere in San Diego County. 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