UK Postcode Format Support
We clean UK postcodes from many different input formats. See what we support below.
Supported Format Variations
Spacing Variations
SW1A 1AASW1A1AASW 1A 1AASW1A 1AAM1 1AAM11AASeparator Types Handled
SW1A-1AASW1A.1AASW1A/1AASW1A_1AASW1A:1AASW1A;1AASW1A,1AASW1A|1AALabels & Prefixes Removed
Postcode: SW1A 1AAPC: SW1A1AAAddress: SW1A 1AASW1A 1AA (postcode)UK SW1A 1AALondon SW1A 1AASW1A 1AA, UKSW1A 1AA, LondonWrapping Characters
"SW1A 1AA"'SW1A1AA'*SW1A 1AA#SW1A1AA SW1A 1AA 'SW1A 1AALowercase & Case Variations
sw1a 1aasw1a1aaSw1a 1aaSW1a 1AAsw1A 1aaSw1A 1AasW1a 1Aam1 1aaAll postcodes are normalized to uppercase during validation.
All UK Postcode Formats
M1 1AAA# #AA
M60 1AAA## #AA
CR2 6XHAA# #AA
DN55 1PTAA## #AA
W1A 1AAA#A #AA
EC1A 1BBAA#A #AA
Special Cases Handled
No Space Variation:
SW1A1AA → SW1A 1AA
Missing Space:
M11AA → M1 1AA
With Address:
10 Downing Street, SW1A 1AA → SW1A 1AA
With City:
London SW1A 1AA → SW1A 1AA
Output Format
All postcodes are formatted consistently with proper spacing:
SW1A 1AA
M1 1AA
EC1A 1BB
Outward code (area), space, inward code (3 characters).
Have a Format We Don't Support?
If you have postcode data in a format we don't currently handle, please contact us with examples and we'll add support!