Morocco Postal Codes & Zip Codes - Format, List & Examples

Morocco Postal Codes - Format, Structure & Examples by Region

Morocco flag

Access structured postal-code data for Morocco, including cities, postal codes, streets, and regional information. Designed for business, analytics, logistics, data enrichment, and location-based applications.

View Sample Files | Get Full Dataset

Dataset Overview

PostcodeZip provides a ready-to-use database covering 513 cities and 232 postal codes across 11 regions of Morocco. Moroccan postal codes are five-digit numeric codes (for example, 40056).

  • 513 cities
  • 232 postal codes
  • 11 regions
  • Most common street name: RN1 (30 times)

What This Data Can Be Used For

  • Postal code validation and cleanup
  • Autocomplete for forms and search fields
  • Location-based analytics and reporting by region or city
  • Database enrichment and segmentation
  • Logistics, delivery, and route planning
  • Geographic applications and mapping tools

Available Files

Depending on your project, you can choose one or more of the following files:

  • Regions file - administrative regions and subdivisions
  • Locations file - cities and postal codes
  • Streets file - street-level location data
  • Addresses file - individual addresses with coordinates

Each file is available as a sample preview before purchase.

Sample Files Preview

Download a sample file or preview a few example rows before purchasing.

Regions File

Download regions sample

Country CodeCountryRegionRegion2Region3Region4
MAMoroccoDrâa-Tafilaletcercle d'Ouarzazatecaïdat de Ahl Ouarzazate
MAMoroccoMarrakech-Safipachalik de Safi آسفيcaïdat de Dar Si Aissa
MAMoroccoCasablanca-SettatCercle de Settat دائرة سطاتcaïdat de Oulad Said

Locations File

Download locations sample

Country Code Country Region City Postal Code
MAMoroccoRabat-Salé-KenitraBrachoua15153
MAMoroccoTangier-Tetouan-Al HoceimaTassift
MAMoroccoSouss-MassaOulad Dahou ⵡⵍⴰⴷ ⴷⴰⵃⵓ أولاد داحو

Streets File

Download streets sample

Country Code Country Region City Postal Code Street Latitude Longitude Elevation (m) Geocoding Level Accuracy Radius (m)
MAMoroccoRabat-Salé-KenitraJemaat Moul Blad15152RR40433.590166-6.430824203STREET50
MAMoroccoTangier-Tetouan-Al HoceimaBni Harchen بني حرشن90052RP470435.477551-5.684222181STREET50
MAMoroccoDrâa-TafilaletToundoute45852RP150231.225428-6.5771031455STREET50

Addresses File

Download addresses sample

Country CodeCountryRegionCityPostal CodeStreetNumberLatitudeLongitudeElevation (m)
MAMoroccoBéni Mellal-KhénifraOulad NacerRP322832.242885-6.914656384
MAMoroccoTangier-Tetouan-Al HoceimaSidi Redouane16202P456934.625386-5.441792171
MAMoroccoMarrakech-SafiSidi MoussaRN2332.340250-7.213996327

Sample data for preview purposes only.

Why This Dataset Is Useful

This database makes it easier to work with real Moroccan geographic data in a structured format. It can help standardize postal code inputs, improve form completion, match existing customer records, and support internal analysis by city, postal code, street, or region.

It is also useful for teams building applications that rely on real postal and location data, including CRMs, business directories, delivery systems, mapping tools, and reporting platforms.

Data Structure

Depending on the selected file, the dataset may include the following fields:

  • Country code
  • Country name
  • Region
  • City
  • Postal code
  • Street
  • Latitude
  • Longitude
  • Elevation

Formats and Delivery

Files are available in CSV, Excel, SQL, and XML format, depending on the selected product.

After purchase, your files are delivered in a downloadable archive and can be used immediately.

Updates and Purchase

This is a one-time purchase. The dataset is maintained regularly; updated on November 4, 2026. Additional updates may be available on request.

Buy Now