Address validation architecture
Postcode Validation vs Address Verification
A postcode that has the right shape is not the same as a verified property, and a matched property is not necessarily a guarantee that a parcel or letter can be delivered in a particular workflow.
By PostcodeLab · Published · Updated
Four different checks
| Check | Question answered | Typical method |
|---|---|---|
| Format validation | Does the input have a plausible UK postcode shape? | Normalisation and syntax rules |
| Postcode lookup | Is the postcode present in the selected current or historical dataset? | Postcode directory or API |
| Address verification | Does a structured address match a recognised address record? | PAF or another authoritative address product |
| Deliverability | Can this specific service deliver here under its current rules? | Carrier or service-specific check |
Choose the check that matches the decision
A newsletter form may need only basic normalisation. A checkout may need an address lookup plus a manual option. Public-sector systems may also use a Unique Property Reference Number to link the location consistently across datasets. GOV.UK guidance explains that UPRNs remain stable and help reduce errors when exchanging property information.
Do not describe a regex match as address verification. Likewise, do not describe a map result as proof that an occupant, customer or organisation is connected with that location.
Design for lookup failure
The GOV.UK Design System recommends a manual-entry alternative because lookup tools can omit new, unusual or international addresses. Preserve the user's ability to correct a result instead of forcing the first returned address.
- Explain whether the service checks syntax, existence or deliverability.
- Record the dataset and version used for a decision.
- Handle new builds, large-user postcodes and terminated postcodes deliberately.
- Keep the country explicit before running UK-specific validation.
- Provide accessible error messages that tell the user how to recover.
What PostcodeLab can and cannot test
PostcodeLab helps exercise field layouts, copy flows, postcode parsing and map previews. It does not certify deliverability, ownership, occupancy, identity, eligibility or a relationship between the generated fields. Tests that make those decisions need the appropriate authoritative service and a documented lawful purpose.
Official references
Related developer guides
UK Postcode Format and Validation Guide
Understand UK postcode structure, outward and inward codes, normalisation, syntax validation, lookup checks and practical QA test cases.
Read guideUK Postcode Regex and Validation Examples
Build a maintainable UK postcode regex with normalisation, JavaScript examples, valid format cases, server-side checks and clear validation limits.
Read guideUK Address Lookup and Autocomplete Guide
Design a resilient UK address lookup and autocomplete flow with postcode search, editable results, manual entry, accessibility and provider safeguards.
Read guideUK Address Format: Correct Order and Examples
See the correct UK address format for houses, flats and named buildings, with postcode placement and line-by-line examples for UK and international use.
Read guide