Postcode files
This document describes the contents of the post code files
File names, CSV and TXT format, encodings, row endings and upper/mixed case work the same way as for the address files: see About the files. For the codes used in the files, see Column types.
Postnummerfilen - contents and layout
Postnummerfilen contains all current postcodes in Sweden and associated
localities and municipality code. Some postcodes overlaps one or more county/municipal boundaries which means some postcodes will appear more than ones; one line for each unique combination of postcode, locality, municipality code.
| Contents | Description |
|---|---|
| Article number / File name: | se_rec2 |
| Available file formats: | Excel, CSV, TXT (fixed row length) |
| Number of rows: | Approx 17 500 |
| Columns: | Postcode |
| Locality | |
| Municipality code | |
| Encoding (CSV, TXT) | UTF-8, ISO 8859-1 |
Layout
The following table shows how the file is structured. The columns "Start" and "Length" is only relevant for text files with fixed row length.
| Start | Length | Contents |
|---|---|---|
| 1 | 5 | Postcode |
| 6 | 20 | Locality |
| 26 | 4 | Municipality code |
| 30 | 2 | Empty (deprecated A-region code) |
| 32 | 1 or 2 | End of row (LF or CR+LF) |
Postnummerfilen - Län, kommun - contents and layout
Postnummerfilen Län, kommun, contains all current postcodes in Sweden and associated
localities, counties and municipalities. Some postcodes overlaps one or more county/municipal boundaries which means some postcodes will appear more than ones; one line for each unique combination of postcode, locality, county and municipality.
| Contents | Description |
|---|---|
| Article number / File name: | se_rec2LK |
| Available file formats: | Excel, CSV, TXT (fixed row length) |
| Number of rows: | Approx 17 500 |
| Columns: | Postcode |
| Locality | |
| County code | |
| County name | |
| Municipality code | |
| Municipality name | |
| Encoding (CSV, TXT) | UTF-8, ISO 8859-1 |
Layout
The following table shows how the file is structured. The columns "Start" and "Length" is only relevant for text files with fixed row length.
| Start | Length | Contents |
|---|---|---|
| 1 | 5 | Postcode |
| 6 | 20 | Locality |
| 26 | 2 | County code |
| 28 | 38 | County name |
| 66 | 4 | Municipality code |
| 70 | 38 | Municipality name |
| 108 | 2 | Empty (deprecated A-region code) |
| 110 | 1 or 2 | End of row (LF or CR+LF) |
Postnummerfilen - Län, kommun, församling - contents and layout
Postnummerfilen Län, kommun, församling contains all current postcodes in Sweden and associated
localities, counties, municipalities and parishes. Some postcodes overlaps one or more county/municipal/parish boundaries which means some postcodes will appear more than ones; one line for each unique combination of postcode, locality, county, municipality and parish.
| Contents | Description |
|---|---|
| Article number / File name: | se_rec2LKF |
| Available file formats: | Excel, CSV, TXT (fixed row length) |
| Number of rows: | Approx 20 500 |
| Columns: | Postcode |
| Locality | |
| County code | |
| County name | |
| Municipality code | |
| Municipality name | |
| Parish code | |
| Parish name | |
| Encoding (CSV, TXT) | UTF-8, ISO 8859-1 |
Layout
The following table shows how the file is structured. The columns "Start" and "Length" is only relevant for text files with fixed row length.
| Start | Length | Contents |
|---|---|---|
| 1 | 5 | Postcode |
| 6 | 20 | Locality |
| 26 | 2 | County code |
| 28 | 38 | County name |
| 66 | 4 | Municipality code |
| 70 | 38 | Municipality name |
| 108 | 6 | Parish code |
| 114 | 38 | Parish name |
| 152 | 2 | Empty (deprecated A-region code) |
| 154 | 1 or 2 | End of row (LF or CR+LF) |
Postnummerfilen - Län, kommun, distrikt- contents and layout
Postnummerfilen Län, kommun, distrikt contains all current postcodes in Sweden and associated
localities, counties, municipalities and districts. Some postcodes overlaps one or more county/municipal/district boundaries which means some postcodes will appear more than ones; one line for each unique combination of postcode, locality, county, municipality and district.
| Contents | Description |
|---|---|
| Article number / File name: | se_rec2LKD |
| Available file formats: | Excel, CSV, TXT (fixed row length) |
| Number of rows: | Approx 22 000 |
| Columns: | Postcode |
| Locality | |
| County code | |
| County name | |
| Municipality code | |
| Municipality name | |
| District code | |
| District name | |
| Encoding (CSV, TXT) | UTF-8, ISO 8859-1 |
Layout
The following table shows how the file is structured. The columns "Start" and "Length" is only relevant for text files with fixed row length.
| Start | Length | Contents |
|---|---|---|
| 1 | 5 | Postcode |
| 6 | 20 | Locality |
| 26 | 2 | County code |
| 28 | 38 | County name |
| 66 | 4 | Municipality code |
| 70 | 38 | Municipality name |
| 108 | 6 | District code |
| 114 | 38 | District name |
| 152 | 2 | Empty (deprecated A-region code) |
| 154 | 1 or 2 | End of row (LF or CR+LF) |
Postnummerfilen - brev och paket - contents and layout
Postnummerfilen - brev och paket contains all postcodes and localities in Sweden together with information on which address types are within the post code. Using this file, you can determine whether the post code is suitable for letters
and/or packages. The file is often used by haulage contractors.
| Contents | Description |
|---|---|
| Article number / File name: | se_rec3 |
| Available file formats: | Excel, CSV, TXT (fixed row length) |
| Number of rows: | Approx 10 500 |
| Columns: | Postcode |
| Locality | |
| Address type AL | |
| Address type AT | |
| Address type AO | |
| Address type PO | |
| Address type AS | |
| Address type AR | |
| Address type AN | |
| Address type AU | |
| Address type BO | |
| Encoding (CSV, TXT) | UTF-8, ISO 8859-1 |
Layout
The following table shows how the file is structured. The columns "Start" and "Length" is only relevant for text files with fixed row length.
| Start | Length | Contents | Explanation |
|---|---|---|---|
| 1 | 5 | Postcode | |
| 6 | 20 | Locality | |
| 26 | 2 | Address type AL | Rural areas |
| 28 | 2 | Address type AT | Urban areas |
| 30 | 2 | Address type AO | Post box addresses served by PostNord |
| 32 | 2 | Address type PO | Other post operator than PostNord |
| 34 | 2 | Address type AS | Companies/authorities with their own post codes |
| 36 | 2 | Address type AR | Postal units, post terminals, regional offices |
| 38 | 2 | Address type AN | Competition mail |
| 40 | 2 | Address type AU | Pre-paid returns /Freepost |
| 42 | 2 | Address type BO | Not used, always empty |
| 44 | 1 or 2 | End of row (LF or CR+LF) |
Each address type column holds the code (for example AL) when that address type occurs in the postcode, and is empty otherwise.
- PO and BO. PO covers addresses served by other post operators than PostNord, including their post boxes. The BO column is always empty: the source data does not tell these post boxes apart from other PO addresses.
- Only postcodes with addresses. Postcodes without any addresses are not included, unlike in Postnummerfilen.
- CSV. The header row names only the first two columns (
POSTALCODE;LOCALITY;;;;;;;;;), and every data row ends with an extra;. Read the columns by position.
Postnummerfilen - Logistik - contents and layout
Postnummerfilen - Logistik contains all current postcodes in Sweden and associated
localities, counties and municipalities.
Postcodes that fully or partially are related to street addresses that can be visited or delivered to. The file is usually used to check whether a postcode is "valid" for packages/goods delivery or to residences and contains which address types exist within the postcode. Some postcodes overlap one or more county/municipal boundaries which means some postcodes will appear more than ones; one line for each unique combination of postcode, locality, county and municipality.
| Contents | Description |
|---|---|
| Article number / File name: | se_rec6LK |
| Available file formats: | Excel, CSV, TXT (fixed row length) |
| Number of rows: | Approx 10 500 |
| Columns: | Postcode |
| Locality | |
| County code | |
| County name | |
| Municipality code | |
| Municipality name | |
| Address types, comma separated | |
| Encoding (CSV, TXT) | UTF-8, ISO 8859-1 |
Layout
The following table shows how the file is structured. The columns "Start" and "Length" is only relevant for text files with fixed row length.
| Start | Length | Contents |
|---|---|---|
| 1 | 5 | Postcode |
| 6 | 20 | Locality |
| 26 | 2 | County code |
| 28 | 38 | County name |
| 66 | 4 | Municipality code |
| 70 | 38 | Municipality name |
| 108 | 40 | Address types, comma separated |
| 148 | 1 or 2 | End of row (LF or CR+LF) |
"Address types" lists the kinds of street address in the postcode: AL (rural), AT (urban) or AL,AT. Post boxes and other address types are not included.
Postnummerfilen - Förändringar - contents and layout
Postnummerfilen - Förändringar lists the postcodes that were added or removed since the previous delivery.
| Contents | Description |
|---|---|
| Article number / File name: | se_rec5 |
| Available file formats: | Excel, CSV, TXT (fixed row length) |
| Number of rows: | N/A (depends on the number of changes carried out and the chosen time period) |
| Columns: | Postcode |
| Locality | |
| Added date | |
| Removed date | |
| Change code | |
| Encoding (CSV, TXT) | UTF-8 |
Layout
The following table shows how the file is structured. The columns "Start" and "Length" is only relevant for text files with fixed row length.
| Start | Length | Contents | Explanation |
|---|---|---|---|
| 1 | 5 | Postcode | |
| 6 | 20 | Locality | |
| 26 | 8 | Added date | YYYYMMDD; empty for a removed postcode |
| 34 | 8 | Removed date | YYYYMMDD; empty for an added postcode |
| 42 | 1 | Change code | 1 = added, 9 = removed |
| 43 | 1 or 2 | End of row (LF or CR+LF) |
The dates are the dates of the postcode data the change was found between: the added date is the data at the end of the period, the removed date the last data in which the postcode existed. A postcode that only changed its locality is not listed. When nothing changed, no file is delivered.
Updated 7 days ago
What’s Next
Below you'll find detailed information regarding column and range types/address intervals in the postcode files