Postcode files
This document describes the contents of the post code files
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: | rec2 |
Available file formats: | Excel, CSV, TXT (fixed row length) |
Number of rows: | Approx 17 500 |
Columns: | Postcode |
Locality | |
Municipality code | |
Encoding | UTF-8, ISO 8859-1 |
Layout
The following table shows how the file is structured. The columns "Start" and "Lengh" 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: | 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 | 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: | 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 | 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 | 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: | 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 | 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 | 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: | 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 | 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 | Post box addresses served by other than PostNord |
44 | 1 or 2 | End of row (LF or CR+LF) |
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: | rec6 |
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 | 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) |
Updated about 2 months ago
Below you'll find detailed information regarding column and range types/address intervals in the postcode files