A Valid German Address Example
A valid German address example has exactly two lines: a street-and-house-number line and a last line carrying the five-digit postal code followed immediately by the place name — for example "Beispielstraße 5" on the first line and "10115 Berlin" on the last. Unlike a US or Canadian address, a German address carries no state (Bundesland) line at all: the postal code and place name alone are treated as sufficient to route mail, which UPU S42 documents as one of several genuinely different national conventions for how much administrative detail a last line needs to carry.
Every German record Fake Addresses generates carries a real postal code, resolved to a real Bundesland and a real Kreis (the German county-equivalent tier) by testing the postal code's own point against two real administrative boundaries. The street-and-house-number line is synthesised, because no free German source reaches street level, so the number and street name on a generated record are a clearly labelled placeholder rather than a claim about a real delivery point.
That two-tier administrative resolution, Bundesland and Kreis both verified from the same point, is a genuinely deeper coherence check than a country where only a single administrative tier is confirmed. It is exactly the kind of detail a QA engineer testing a German shipping integration can rely on: the postal code, the state, and the district always agree with each other, even though the street line does not claim to be a real address.
German Postal Code (PLZ) Format and Examples
Fake Addresses generates a German Postleitzahl that is always exactly five digits, with no letters and no hyphen, and precedes the place name rather than following it:
| Postal code (PLZ) | Place | Full last line |
|---|---|---|
| 10115 | Berlin | 10115 Berlin |
| 80331 | München | 80331 München |
| 20095 | Hamburg | 20095 Hamburg |
| 50667 | Köln | 50667 Köln |
How German Address Format Compares to the United States and France
Fake Addresses formats Germany and France as sharing the five-digit postal code and the "code then city" last-line order, which is the opposite of how a US ZIP+4 follows the city rather than leading it:
| Country | Last-line order | Postal-code position |
|---|---|---|
| Germany | Postal code, then place name, no state line | Start of the last line |
| France | Postal code, then commune name, no région line | Start of the last line |
| United States | City, State, ZIP+4 | End of the last line, per USPS Publication 28 |
Synthetic Test Data Generation for German Test Addresses
Synthetic test data generation for Germany has to put the postal code before the place name, not after it, because a real German address-validation service treats that ordering as part of the format check itself, not a stylistic preference. Fake Addresses generates a record that copies neither the US "city before code" convention nor any other country's order by mistake, because a swapped field order would fail a real German integration immediately, regardless of how accurate the underlying place name and postal code otherwise were.
Fake Addresses states its German coherence level plainly on the random Germany address generator: the postal code is real and resolved to both a real Bundesland and a real Kreis by point-in-polygon, while the street-and-house-number line is synthesised because no free German source reaches street level. A QA engineer testing a German checkout or delivery form can see exactly which two administrative tiers a given generated record has actually been verified against.
Every generated German record is non-deliverable by construction for the same underlying reason as every other country in this build. No German street-level address data is ingested at all, so the synthesised street line cannot coincide with a real delivery point, and a German test fixture built from this data carries no risk of accidentally resolving to somebody's real address, whether it is committed to a public repository or run against a live validation endpoint.
Frequently asked questions
Why does a German address have no state line?
A German Postleitzahl and place name are treated as sufficient to route mail without naming the Bundesland at all, which is a genuinely different convention from a US or Canadian address that always names the state or province. Fake Addresses formats every generated German record without a state line for exactly this reason.
Is the German postal code always five digits?
Yes, always. Fake Addresses generates every German postal code, the Postleitzahl, against that same fixed five-digit pattern, never a letter or a hyphen, unlike a Canadian postal code's alternating letters and digits.
What does Fake Addresses verify for a generated German address?
Fake Addresses verifies the postal code against a real Bundesland and a real Kreis by point-in-polygon, both from the same real point. The street-and-house-number line is synthesised, because no free German source reaches street level, so it is never presented as a real delivery point.
Sources
- Universal Postal Union — The Universal Postal Union runs an addressing-solutions programme, including international addressing standards and assistance to member countries whose addresses do not follow a US or UK-style format.
- United States Postal Service — Postal Explorer — USPS Publication 28 defines a "standardized address" as one using official USPS abbreviations, and a "complete address" as one containing everything needed to match the ZIP+4 and City State files.