Postal code

Slovenia postal codes

Slovenia postal codes have the format #### (4 digits), for example 4000. zipcodestack has 647 postal codes for Slovenia.

Format
####
Example
4000
Codes in our database
647
Local name
poštna številka

Slovenia postal code format

Pattern#### (# digit, @ letter)
Examples4000, 1001, 2500
Regex^(?:\d{4})$

Format and regex from Google's address metadata (libaddressinput). The regex checks the shape of a code, not whether it exists.

Postal Codes of the largest cities

Neighbouring countries

Slovenia postal codes: FAQ

What is the postal code format in Slovenia?

Slovenia postal codes follow the pattern #### (# = digit, @ = letter), i.e. 4 digits. Examples: 4000, 1001, 2500.

What regex validates Slovenia postal codes?

^(?:\d{4})$ matches the official format (from Google's address metadata). It checks the shape only; whether a code exists needs a lookup in a postal code database such as the zipcodestack API.

What is the postal code of Ljubljana?

Ljubljana has 45 postal codes, starting with 1500. The right one depends on the street; see the full list for Ljubljana.

How many postal codes are there in Slovenia?

The zipcodestack database contains 647 postal codes for Slovenia, each with place name, region and coordinates.

Postal code API

Look up Slovenia postal codes by API

zipcodestack looks up, validates and searches postal codes in 149 countries: city, state, coordinates, distances and radius search, as JSON.

/v1/search documentation International postal code API All documentation

300 free requests every month. No credit card required.

GET https://api.zipcodestack.com/v1/search?codes=4000&country=si

{
  "results": {
    "4000": [{
      "postal_code": "4000",
      "country_code": "SI",
      "city": "…",
      "state": "…",
      "latitude": …,
      "longitude": …
    }]
  }
}

Free postal code tools

Start using our ZIP Code API for free today!

Get 300 requests / month for free