DEV Community

brian austin
brian austin

Posted on • Originally published at simplylouie.com

I Built a Free VIN Decoder That Uses the NHTSA API - Here is How

Every car has a 17-digit VIN (Vehicle Identification Number) that contains its entire identity — year, make, model, engine, safety features, where it was built. Most VIN decoder sites charge money or force you to create an account. So I built a free one.

The NHTSA Has a Free API

The National Highway Traffic Safety Administration maintains a free, public API that decodes any VIN:

https://vpic.nhtsa.dot.gov/api/vehicles/decodevinvalues/{VIN}?format=json
Enter fullscreen mode Exit fullscreen mode

No API key needed. No rate limiting (within reason). It returns everything — make, model, year, engine cylinders, displacement, fuel type, body class, GVWR, safety features, even the plant where the car was manufactured.

What You Get Back

The API returns over 100 fields per VIN. The useful ones:

  • Make / Model / Year — The basics
  • BodyClass — Sedan, SUV, truck, etc.
  • DriveType — FWD, RWD, AWD, 4WD
  • FuelTypePrimary — Gasoline, diesel, electric
  • EngineCylinders / DisplacementL — Engine specs
  • AirBagLocFront / Side / Curtain — Safety features
  • PlantCountry / PlantCity — Where it was built

Why This Matters

If you're buying a used car, the VIN tells you exactly what you're looking at. Sellers sometimes misrepresent trim levels or engine options. A quick VIN decode catches that instantly.

If you're building anything automotive — an inventory system, a dealer tool, a marketplace — the NHTSA API saves you from maintaining your own vehicle database.

Try It

I put this into a free web tool at simplylouie.com/vin-decoder. No signup, no email capture gates. Just paste a VIN and get results.

The source is straightforward — it's a fetch call to the NHTSA endpoint with some cleanup of the response fields. The API handles all the heavy lifting of VIN parsing (which involves some genuinely complex logic around world manufacturer identifiers, check digits, and model year encoding).

One Gotcha

The NHTSA database isn't perfect for very old vehicles (pre-1981 VINs weren't standardized to 17 digits) or for some foreign-market vehicles. But for anything sold in the US after 1981, it's remarkably comprehensive and always free.


Built this as part of SimplyLouie — a set of free tools alongside a $2/month AI assistant. The tools are free forever, no account needed.

Top comments (0)