Vehicle identity

VIN structure

Last updated:

What each of the 17 characters means, how to check one, and how Cardog keys on it.

Close-up line drawing of a riveted VIN plate on the dashboard, seen through the lower corner of the windshield; its seventeen characters are blank cells.
Seventeen characters on a riveted plate, read through the glass.

A Vehicle Identification Number is 17 characters that identify one vehicle, for its whole life. ISO 3779 sets its content and structure and ISO 3780 how manufacturer codes are assigned. In North America, 49 CFR Part 565 fixes what each position means, and Canada's CMVSS 115 follows the same layout, so a VIN on a Canadian vehicle reads exactly like the one below.

The 17 positions

2T3R1RFV7MW180266 is a 2021 RAV4 built in Canada. Read left to right, it narrows from the manufacturer to the model to the one vehicle.

World Manufacturer Identifier2T3
Assigned under ISO 3780. The first character is the region block (2 is Canada); the three together identify the manufacturer and the type of vehicle.
Vehicle Descriptor SectionR1RFV
The manufacturer's own code for model, body, restraints and engine. In North America each maker files its key with NHTSA; there is no shared table, which is why decoding needs patterns.
Check digit7
Computed from the other sixteen characters. Required in North America. Worked through below.
Model yearM
M is 2021 in the current cycle. The codes repeat every thirty years.
PlantW
The assembly plant, in the manufacturer's own code.
Serial180266
The production sequence number. On cars, MPVs and light trucks the last five are digits.

The letters I, O and Q never appear in a VIN, in any position, so they can never be misread as 1 and 0. A "VIN" containing one is a typo or not a VIN.

The manufacturer: positions 1 to 3

The WMI is assigned to a manufacturer under ISO 3780; in the United States SAE International makes the assignments under contract to NHTSA. The three characters together identify the manufacturer and the type of vehicle, and the first is a region block. First characters you will see most often in North America:

First characterAssigned to
1, 4, 5United States
2Canada
3Mexico (most of the block)
JJapan
KSouth Korea
LChina
SUnited Kingdom (SA to SM)
VFrance (VF to VR)
WGermany

The region is where the WMI was assigned, which usually means where the vehicle was built, not where the brand is from: a Japanese brand's car built in Ontario starts with 2.

Small manufacturers: the extended WMI

A manufacturer building fewer than 1,000 vehicles of a type a year (a low-volume manufacturer in 49 CFR 565) does not get a three-character WMI of its own. It gets a six-character identifier: a WMI whose third character is 9, finished by positions 12 to 14. A 9 in position 3 always means this form. The serial is then only positions 15 to 17. Trailer, RV and specialty builders are the usual carriers of this form.

2A9TR1DA1PA123045 is constructed to pass its check digit; it describes no real vehicle. The inked cells are one identifier: 2A9 + 123.

A decoder that reads only positions 1 to 3 merges every small manufacturer that shares a 9 WMI into one. Cardog's identity for these VINs carries the extra three characters, covered below.

The vehicle: positions 4 to 8

The VDS is the manufacturer's own code. Position 4 is often the line or platform, 5 the restraint system, 6 and 7 the body and series, 8 the engine, but that is a convention, not a rule: each manufacturer defines its own key and, in the United States, files it with NHTSA at least 60 days before the first VIN goes on a vehicle. There is no shared table, which is why a decode is a lookup against a pattern set rather than arithmetic. On current cars, MPVs and light trucks, position 7 must be a letter (the model-year section below says why).

The check digit: position 9

The check digit catches a mistyped or invented VIN. Each character is turned into a number, multiplied by its position's weight, and the products summed; the remainder after dividing by 11 is the digit, written X when it is 10. Position 9 weighs 0, so the digit never checks itself. Paste any VIN to see its arithmetic.

Check digit arithmetic, position by position
Position1234567891011121314151617
Character2T3R1RFV7MW180266
Value23391965746180266
Weight876543210098765432
Product16211845427125003648748081812

Sum 370. 370 ÷ 11 = 33 remainder 7. Position 9 reads 7: the VIN passes.

Cardog records whether a VIN's digit passes but never refuses a decode on it: not every market enforces the digit, and a failing digit is a fact about the VIN worth keeping, not a reason to drop it.

The model year: position 10

Thirty codes cover thirty model years, then repeat. The letters skip I, O and Q (never used anywhere), U and Z, and the digit 0.

  1. A19802010
  2. B19812011
  3. C19822012
  4. D19832013
  5. E19842014
  6. F19852015
  7. G19862016
  8. H19872017
  9. J19882018
  10. K19892019
  11. L19902020
  12. M19912021
  13. N19922022
  14. P19932023
  15. R19942024
  16. S19952025
  17. T19962026
  18. V19972027
  19. W19982028
  20. X19992029
  21. Y20002030
  22. 120012031
  23. 220022032
  24. 320032033
  25. 420042034
  26. 520052035
  27. 620062036
  28. 720072037
  29. 820082038
  30. 920092039
The example's M is 1991 or 2021; the rest of the VIN, or the vehicle in front of you, settles which.

For cars, MPVs and trucks up to 4,536 kg (10,000 lb) GVWR, position 7 settles the cycle under 49 CFR 565: a digit there means 1980 to 2009, a letter means 2010 to 2039. In 2T3R1RFV7MW180266 position 7 is F, so M is 2021. It is the manufacturer's model year, which need not match the calendar year the vehicle was built in.

Where the VIN lives on a vehicle

Line drawing of a sedan with the driver's door open: a plate on the dashboard at the lower driver-side corner of the windshield, and a label on the B-pillar.
  1. 1The dash plate, at the lower driver-side corner
  2. 2The compliance label, on the B-pillar
  • The dashboard, at the lower driver-side corner of the windshield. On cars, MPVs and light trucks, 49 CFR 565 requires the VIN inside the cabin and readable through the glass by someone standing outside next to the driver-side windshield pillar.
  • The driver's door jamb or B-pillar, on the compliance label, which on most vehicles repeats the VIN beside the build date and weight ratings.
  • Stampings on the frame, the engine or body panels, on many vehicles.
  • The diagnostic port: most cars from the mid-2000s on report their VIN over OBD-II.
  • Paper: the registration, the insurance slip and the bill of sale.

When two of these disagree, the vehicle has a story worth reading before anyone buys it.

How Cardog keys on a VIN

Two grains sit between one VIN and a whole model year, and both are cut from the VIN alone, offline, with no decode:

squish 1–8 + 10: the market grain

squish:2T3R1RFVM

nano 1–8, *, 10, 11: the build grain

nano:2T3R1RFVMW

nano, extended WMI + 12–14

nano:2A9TR1DAPA123
Dashed cells are dropped. The key form keeps the * at position 9; the ref form drops it, and parsing puts it back.
  • squish is positions 1 to 8 plus 10: manufacturer, descriptor and model year, with the plant left out. Every VIN sharing a squish is the same configuration of the same model year, which makes it the market grain: quotes take it as an instrument.
  • nano is positions 1 to 8, a * for the check digit, then 10 and 11: the squish plus the plant, the build grain. For an extended-WMI VIN it adds positions 12 to 14, because there they are part of the manufacturer; for everyone else they are serial and are left out.
  • The ref form drops the *: the key 2T3R1RFV*MW is the ref nano:2T3R1RFVMW, and parsing puts it back.
import { squishFromVin, nanoFromVin, checkDigitOk } from "@cardog/entities";

squishFromVin("2T3R1RFV7MW180266"); // "2T3R1RFVM"
nanoFromVin("2T3R1RFV7MW180266");   // "2T3R1RFV*MW"
nanoFromVin("2A9TR1DA1PA123045");   // "2A9TR1DA*PA123"
checkDigitOk("2T3R1RFV7MW180266");  // true

The vehicle graph covers which endpoints take which grain, and the ref grammar the full set of ref forms.

Decoding a VIN with the API

The structure tells you where the manufacturer, model year and plant are; it does not tell you the trim, engine or body, because those live in each manufacturer's VDS key. A decode does:

curl "https://api.cardog.app/v2/vin/2T3R1RFV7MW180266" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"

Decode a VIN walks through the response, and the VIN reference has the full shape, batch decoding and the links from a VIN to its recalls, listings and market instrument.

Moving from another decoder? The migration guides map NHTSA vPIC, CarsXE, VinAudit and Auto.dev fields to Cardog's, one by one, and What a VIN tells you and Squish and nano build codes go further into the keys.

Standards

StandardWhat it sets
ISO 3779VIN content and structure
ISO 3780The World Manufacturer Identifier and its assignment
49 CFR Part 565VIN requirements in the United States: the meaning of each position, the check digit, the model-year code, placement
CMVSS 115VIN requirements in Canada