Skip to main content
The postcodes table contains 844,248 records covering 125 countries. Each record includes the postcode string, country, granularity type, source attribution, and locality name.

Coverage

Postcode Types

Query Examples

Look up postcodes for a country

Validate a postcode format

Use the postal_code_regex field on the countries table to validate a postcode before querying:

Find postcodes by locality

Count postcodes per country

Availability by Format

The postcodes table is included in all SQL-based exports (MySQL, PostgreSQL, SQLite, SQL Server) and the JSON export. It is not included in the CSV, YAML, or GeoJSON exports by default.
Use the Export Tool to download a postcodes-only dataset for specific countries, which is significantly smaller than the full dump.

Database Schema

Full table definitions including the postcodes table structure.

Export Tool

Export postcodes data in your preferred format.