To decode a Mercedes S-Class VIN, look at characters 4 through 7. NG means the W221 car sold through 2013, UG means the W222 from 2014, and on 2021-and-later cars the whole prefix changes to W1K6G. The 6th and 7th characters then pick the version, for example WDDNG71 for a 2007 S550, WDDUG8D for a 2019 S560 and W1K6G7G for an S580 4MATIC. The 10th character is the year, and every S-Class we decoded came from Sindelfingen, coded A in the 11th spot.
We built this list on November 30, 2026, by sending partial VINs to NHTSA's vPIC database with an asterisk in place of the check digit, then keeping only the patterns that returned a clean model and engine. A few of the answers look wrong, and we point those out instead of pretending the database is perfect.
W221, roughly 2007 to 2013
On the W221 the WMI is WDD and positions 4 and 5 are NG. For 2007 (year character 7), these came back:
- WDDNG71X: S550, 5.5 liter V8
- WDDNG86X: S550 4MATIC, 5.5 V8, all-wheel drive
- WDDNG76X: S600, 5.5 liter twin-turbo V12
- WDDNG79X: S65 AMG, 6.0 liter V12
By 2011 (year character B) the 7th character had switched from numbers to letters. WDDNG7B and WDDNG7D both decoded as the S550, 7E as the S63 AMG with a 6.2 liter V8, 7G as the S600, 7K as the S65 AMG, while 8G and 9E both came back as the S550 4MATIC and 9F as the S400 Hybrid with a 3.5 liter V6. So the number in position 6 hints at the platform branch, and position 7 names the engine. If a 2011 listing says S63 and the 7th character is not E, ask questions.
W222, 2014 to 2020
The W222 uses UG. For 2014 (E), WDDUG8C decoded as the S550 with a 4.7 liter V8, WDDUG8F as the S550 4MATIC, and WDDUG7J as the S63 AMG 4MATIC with a 5.5 liter V8. By 2019 (K) the list had grown:
- WDDUG8D: S560, 4.0 liter V8 listed at 463 hp
- WDDUG8G: S560 4MATIC
- WDDUG8J: AMG S63, listed at 603 hp
- WDDUG7K: AMG S65, 6.0 V12 at 621 hp
- WDDUG7D: S560e plug-in hybrid, 3.0 six
- WDDUG6G: S450, 3.0 six at 362 hp
- WDDUG6E: S450 4MATIC
- WDDUX7G: S600 under a UX code
Two oddities here. WDDUG6E came back labeled S450 4MATIC but with the drive type set to rear-wheel drive, which contradicts the name; you can see that record here. And WDDUG8C with a 2019 year code still decoded as an S550 with the 4.7 liter engine, the same answer as 2014. We would not rely on that alone for a 2019 car; check the trunk badge and the window sticker, and ask a dealer to pull the build data.
W223, 2021 on: the prefix changes
For 2021 and later, the first three characters switched from WDD to W1K, and the model code became 6G. W1K6G7G decoded as the S580 4MATIC (4.0 liter V8 at 496 hp in 2023), W1K6G6D as the S500 4MATIC with a 3.0 six at 429 hp, and W1K6G6K as the S580e 4MATIC plug-in. The 2023 S580 record shows the format. If someone shows you a "2022 S-Class" with a WDD prefix, that does not fit any pattern we found, and you should find out why before going further.
The 8th character and what it does not mean
In our tests the 8th character was either X or B, and vPIC returned the same model for both. We did not find an official explanation we could verify, so we are not going to guess. What matters more is that the 6th and 7th characters match the trunk badge. An S550 wearing S63 badges is a cheap trick on a W221 or W222, and the price gap between those cars is large enough that sellers have a reason to try it. Check that the number at the base of the windshield matches the door sticker and the title, too.
Hybrids, 4MATIC and the mix-ups we would watch for
The versions most likely to get mislabeled in listings are the ones that look identical from the curb. On the W221, the S550 and the S550 4MATIC share a body, but vPIC put the rear-drive car under NG7 and the 4MATIC under NG8 or NG9. The S400 Hybrid (NG9F in 2011) looks like an S550 too, and it has a V6, not a V8. On the W222 there were two plug-ins in our results: WDDUG6D decoded as the S550e and WDDUG7D as the S560e, both with a 3.0 liter six and a PHEV label. If you specifically want a plug-in, or specifically want to avoid an aging hybrid battery, those codes are the fastest way to tell.
A simple routine works. Copy the VIN from the dash plate yourself, not from the ad. Decode it. Compare the model, the engine size and the drive type against the listing and the badges. Then check whether the year code fits the generation: we only saw NG with 2007 to 2011 codes, UG with 2014 to 2019 codes and W1K6G with 2021 and 2023 codes, so an NG car claiming to be a 2016 would not fit anything we found. Any mismatch is worth a phone call before a road trip.
Using the decode on a real car
Look, an old S-Class is one of the cheapest ways into a lot of luxury, and also a quick way to learn what air suspension and big-engine repairs cost. The VIN will not warn you about any of that. It tells you what the car is, so you can price it right and look up the right parts. Run the full VIN through the vPIC decoder, then check open recalls with NHTSA's search and our S-Class recall guide. For the rest of the Mercedes lineup, the Mercedes VIN decoder covers the general structure and the E-Class decoder is the closest sibling. What to inspect mechanically is in our used S-Class buying guide.
Finally, pull the history. These cars depreciate hard, so a lot of them pass through auctions and buy-here-pay-here lots, and some carry salvage or flood brands that got lost on the way. We resell licensed CARFAX and AutoCheck reports for a few dollars, where the retail price for one is usually about $39.99 to $44.99, though you should confirm at checkout. On a car that cost six figures new, a few dollars to rule out a washed title is the easiest decision you will make.

Comments (0)
No comments yet. Be the first to share your thoughts!
Log in to leave a comment.