How Are Keys Made? From Blanks to Duplicates

Most keys start as flat metal blanks that get their unique shape from a cutting machine, whether that machine sits on a locksmith’s workbench, inside a self-service kiosk at a retail store, or in an automotive dealer’s shop. The process varies depending on the type of key, but the core idea is the same: shape a piece of metal so its ridges and grooves match a specific lock. Here’s how it works across every common key type.

How Key Blanks Are Manufactured

Before any key can be cut for your front door or car, someone has to produce the blank. Key blanks are almost always made from brass, nickel silver, or steel, chosen for their balance of durability and machinability. Factories shape raw metal into blanks using one of two main methods: die casting and stamping.

In die casting, molten metal is forced into a mold under high pressure, producing a rough key shape that then goes through several finishing steps. Workers or machines shear the edges clean, mill each blank to a precise thickness and curvature, and trim it to the correct length. Stamping works similarly but starts with flat sheet metal punched into shape by a heavy press. Either way, the result is a uniform blank with the right cross-section profile (the shape you see when you look at the key head-on) to fit a particular brand or style of lock. These blanks ship to locksmiths, hardware stores, and kiosk operators by the thousands.

Mechanical Key Duplication

Walk into a hardware store or locksmith shop with a house key, and the technician will use a key duplicating machine. The process takes about a minute and costs just a few dollars. The machine has three critical parts: a jaw that clamps both your original key and a matching blank side by side, a tracer (also called a guide) that rides along the ridges of your original, and a cutter wheel that carves the same pattern into the blank.

As the tracer follows every peak and valley on your original key, the spinning cutter wheel removes metal from the blank in exactly the same pattern. Think of it like a pantograph, the drafting tool that copies drawings at the same scale. The physical connection between tracer and cutter ensures the copy matches the original.

Duplicating machines come in three varieties. Manual machines require the operator to slide the keys across the tracer and cutter by hand, demanding steady attention to produce a clean cut. Semi-automatic machines use a spring-loaded carriage that holds the keys against the tracer and cutter on its own, while the operator moves a lever to guide the cut. Fully automatic machines handle everything: they press the carriage into position and move it side to side, producing consistent copies with minimal operator involvement. A locksmith might use a manual machine for unusual key profiles and an automatic machine for high-volume standard cuts.

Code Cutting From Scratch

Duplication requires an existing key to trace. But what if you’ve lost all your keys? Locksmiths can cut a key from scratch using the lock’s code, a series of numbers that specifies the depth of each cut. Lock manufacturers assign a unique code to every lock, and locksmiths either look it up in a code book, retrieve it from the lock’s packaging or documentation, or decode it by reading the pin depths inside the lock itself.

A code-cutting machine works differently from a duplicating machine. Instead of following a physical template, the operator dials in each depth number and the machine positions the blank against the cutter at the exact setting. The result is a factory-fresh key that matches the lock as precisely as the original did, sometimes more precisely than a copy of a worn key would.

Self-Service Kiosks

Automated key-copying kiosks in grocery stores and big-box retailers use a digital version of the same principle. Instead of a mechanical tracer, these machines use high-resolution optical scanning to photograph your key and map its cuts. A software algorithm, often powered by artificial intelligence, interprets the scan data and translates it into instructions for an internal cutter that shapes a blank to match.

One advantage of this approach is that some kiosk systems let you scan a key once and store the profile digitally. If you need another copy later, you can order it at any kiosk in the network without bringing the physical key again, as long as the right blank profile is stocked in that machine. The optical method also reduces the kind of human error that can creep into a manual duplication, since the scan captures measurements digitally rather than relying on a steady hand guiding a tracer.

How Car Keys Are Made

Modern car keys involve two separate processes: physical cutting and electronic programming. The metal blade still needs to be cut to fit the ignition cylinder or door lock, just like a house key. But most vehicles built since the late 1990s also have a transponder chip embedded in the key’s plastic head. The car’s engine control unit checks for that chip’s signal every time you turn the ignition. If the chip isn’t recognized, the engine won’t start, even if the physical cuts are perfect.

Programming a new transponder key depends on how many working keys you already have. If you have at least one working key, many vehicles let you program a new one yourself through a timed sequence. You insert the working key, turn it to the “on” position to activate the electronics without starting the engine, then quickly swap in the new blank. The car enters a security mode, indicated by a dashboard light that stays illuminated for a few seconds while it registers the new chip. The whole swap needs to happen within about five seconds.

If you have no working keys at all, the process is slower. You insert the new key and turn it to the “on” position, then wait exactly 10 minutes and 30 seconds before turning it off. You repeat this cycle two more times. After three full cycles (over 30 minutes total), the car accepts the new key. For vehicles with push-button start and key fobs, programming typically involves pressing the start button 15 times rapidly (keeping your foot off the brake) and then pressing the lock button on the new fob.

Not every vehicle supports self-programming. Many newer models require a dealer or automotive locksmith with specialized diagnostic equipment to pair a new key to the car’s computer. This is one reason replacement car keys can cost anywhere from $50 to several hundred dollars, depending on the vehicle.

High-Security and Restricted Keys

Some keys are specifically designed to be difficult or impossible to copy without authorization. High-security locks use patented keyway profiles, meaning the cross-section shape of the key is legally protected for up to 20 years. During that patent period, only authorized locksmiths who carry the correct cutting tools can make copies.

The restriction isn’t just legal. It’s also procedural. To get a copy of a restricted key, you typically need to present a security card and a unique PIN code that prove you’re the rightful owner of the lock system. Without that card, even an authorized locksmith won’t cut the key. The blanks themselves are controlled inventory, not available through normal wholesale channels, so a standard hardware store or kiosk simply can’t produce them.

These systems are common in commercial buildings, apartment complexes, and government facilities where property managers need to guarantee that tenants or employees can’t make unauthorized copies. The physical keys often feature additional anti-pick elements and hardened materials that resist drilling for several minutes, making the locks harder to defeat through force as well.

What Affects the Quality of a Copy

A duplicated key is only as good as the original it was traced from. If your original key is worn down from years of use, the copy will replicate those worn dimensions rather than the lock’s true settings. This is why copies of copies tend to get progressively worse. Each generation drifts slightly further from the original specification, eventually producing a key that sticks or fails to turn.

The type of blank matters too. A blank that doesn’t perfectly match the original key’s profile (the shape of the blade’s cross section) won’t sit correctly in the lock, even if the depth cuts are accurate. Good locksmiths check that the blank’s brand and profile number match the original before making any cuts. If you’re getting a key copied and it doesn’t work smoothly, the issue is usually a mismatched blank or a worn original rather than a problem with the cutting machine itself.