Try It!

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.

ContentsDescription
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
EncodingUTF-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.

StartLengthContents
15Postcode
620Locality
264Municipality code
302Empty (deprecated A-region code)
321 or 2End 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.

ContentsDescription
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
EncodingUTF-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.

StartLengthContents
15Postcode
620Locality
262County code
2838County name
664Municipality code
7038Municipality name
1082Empty (deprecated A-region code)
1101 or 2End 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.

ContentsDescription
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
EncodingUTF-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.

StartLengthContents
15Postcode
620Locality
262County code
2838County name
664Municipality code
7038Municipality name
1086Parish code
11438Parish name
1521 or 2End 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.

ContentsDescription
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
EncodingUTF-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.

StartLengthContents
15Postcode
620Locality
262County code
2838County name
664Municipality code
7038Municipality name
1086District code
11438District name
1521 or 2End 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.

ContentsDescription
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
EncodingUTF-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.

StartLengthContentsExplanation
15Postcode
620Locality
262Address type ALRural areas
282Address type ATUrban areas
302Address type AOPost box addresses served by PostNord
322Address type POOther post operator than PostNord
342Address type ASCompanies/authorities with their own post codes
362Address type ARPostal units, post terminals, regional offices
382Address type ANCompetition mail
402Address type AUPre-paid returns /Freepost
422Address type BOPost box addresses served by other than PostNord
441 or 2End 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.

ContentsDescription
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
EncodingUTF-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.

StartLengthContents
15Postcode
620Locality
262County code
2838County name
664Municipality code
7038Municipality name
10840Address types, comma separated
1481 or 2End of row (LF or CR+LF)

What’s Next

Below you'll find detailed information regarding column and range types/address intervals in the postcode files