How to Convert Shapefile to GeoJSON Online for Free
Learn how to convert Shapefile to GeoJSON online for free. Follow this step-by-step guide to convert ZIP Shapefiles, reproject coordinates to WGS 84, and use GeoJSON in QGIS and web maps.
Introduction
Shapefiles are among the most widely used vector data formats in Geographic Information Systems (GIS). They have been used for decades by GIS professionals, government agencies, urban planners, environmental researchers, and surveying organizations to store and exchange geographic information.
However, as GIS technology continues to evolve, GeoJSON has become an increasingly popular format, particularly for web mapping applications, online GIS platforms, and location-based services.
If you work with GIS data, you may eventually need to convert a Shapefile into GeoJSON. For example, you might have a road network, administrative boundaries, land parcels, or zoning dataset that you want to display on a web map. While Shapefiles work well in desktop GIS applications such as QGIS and ArcGIS, GeoJSON is often more convenient for web development and applications that use JavaScript.
The good news is that you do not need to install complicated GIS software or use command-line tools to perform this conversion. In this tutorial, we will explain the differences between Shapefile and GeoJSON, why conversion is useful, and how to convert Shapefile to GeoJSON using a free online GIS format converter. We will use the Geo Server Data Downloader GIS File Converter to demonstrate the entire process.
1. What Is a Shapefile?
A Shapefile is a popular geospatial vector data format originally developed by Esri. It is commonly used to store geographic features and their associated attribute information. Unlike raster formats that represent geographic information using pixels, Shapefiles represent real-world features using vector geometries.
A Shapefile can store three primary types of geographic geometry:
- Point: Represents individual locations, such as buildings, schools, hospitals, and monitoring stations.
- Polyline: Represents linear features, such as roads, rivers, pipelines, and transportation networks.
- Polygon: Represents enclosed geographic areas, such as administrative boundaries, land parcels, zoning districts, and lakes.
A Shapefile also stores attribute information associated with its geographic features. For example, a municipal zoning dataset may contain polygon boundaries representing different zoning districts. Its attribute table could include fields such as Zone_Code, Zone_Name, Land_Use, City_Name, Area_Acres and Description.
One important thing to understand is that a Shapefile is not a single file. It consists of multiple associated files that work together. The most important components include:
| File extension | Purpose |
|---|---|
| .shp | Stores feature geometry |
| .shx | Stores the geometry index |
| .dbf | Stores attribute information |
| .prj | Contains coordinate reference system information |
| .cpg | Specifies character encoding for attribute data |
The .shp, .shx, and .dbf files are essential components of a conventional Shapefile. The .prj and .cpg files are also important when available because they provide coordinate system and character encoding information. For this reason, when sharing or uploading a Shapefile, it is best practice to include all associated files in a single ZIP archive.
2. What Is GeoJSON?
GeoJSON is an open geospatial data interchange format based on JavaScript Object Notation (JSON). It is designed to represent geographic features, their geometries, associated properties, and spatial information in a structured text-based format.
GeoJSON supports several geometry types, including Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. A GeoJSON Feature combines a geographic geometry with its associated properties. Multiple features can be grouped together inside a FeatureCollection. For example, a GeoJSON file containing administrative boundaries may store each district as a polygon, together with its name, identification code, population, and other attributes.
One of the most important characteristics of the current GeoJSON standard, defined in IETF RFC 7946, is its use of the WGS 84 geographic coordinate reference system with longitude and latitude expressed in decimal degrees. This makes GeoJSON particularly useful for web mapping and exchanging geographic information between different applications.
Some common applications of GeoJSON include:
- Interactive web maps.
- JavaScript mapping libraries.
- Web GIS applications.
- Geographic data APIs.
- Location-based services.
- Spatial data visualization.
- Sharing geographic datasets between applications.
You can learn more about the official format specification in IETF RFC 7946: The GeoJSON Format. If you are still deciding which format to use, our comparison of GeoJSON, Shapefile and GeoPackage can help.
3. Why Convert Shapefile to GeoJSON?
There are several practical reasons why GIS professionals convert Shapefiles into GeoJSON.
1. Web mapping applications
GeoJSON is widely supported by JavaScript mapping libraries, including Leaflet and MapLibre GL JS. If you are developing an interactive web map, GeoJSON provides a convenient way to supply geographic features to the mapping application. For example, you may have a Shapefile containing roads or administrative boundaries that you want to display on a website. Converting it into GeoJSON makes it easier to integrate the data into a web mapping workflow.
2. Better integration with web technologies
Because GeoJSON is based on JSON, it works naturally with JavaScript and many modern web development frameworks. Developers can read, manipulate, filter, and display geographic information using familiar JSON objects. This makes it useful for applications built with React, Vue, Angular, and other web technologies.
3. Easier data exchange
GeoJSON is an open format supported by many GIS applications and online services. It provides a convenient way to exchange geographic information between desktop GIS software, web applications, and APIs.
4. Simplified file structure
A conventional Shapefile requires multiple associated files. GeoJSON generally stores its geometries and attributes together in a single .geojson file. This makes it easier to share and manage smaller vector datasets.
5. Working with modern GIS platforms
Many modern GIS platforms and web services support GeoJSON directly. If your workflow involves online data visualization, web applications, or API-based geographic data exchange, GeoJSON can be a practical alternative to Shapefile.
4. What Do You Need Before Converting a Shapefile?
Before starting the conversion, make sure you have the following:
- A Shapefile containing the geographic data you want to convert.
- The associated Shapefile components, preferably packaged in a ZIP archive.
- A modern web browser, such as Google Chrome, Firefox, or Microsoft Edge.
- An internet connection to access the online converter.
You do not need to install QGIS, ArcGIS, GDAL, or any additional desktop GIS software to use the online converter described in this tutorial.
5. How to Convert Shapefile to GeoJSON Online
Now let's walk through the actual conversion process. For this tutorial, we will use the free GIS File Converter available on Geo Server Data Downloader. The tool supports several popular GIS formats and uses the GDAL library for geospatial format conversion. Processing takes place directly in your browser using WebAssembly, so your local input files are not uploaded to the developer's server.
Step 1: Open the GIS File Converter
First, open the GIS File Converter. You will see the converter interface. The page provides an upload area where you can select your source GIS file. It supports ZIP-packaged Shapefiles and several other spatial data formats.

Step 2: Prepare and Upload Your Shapefile
Before uploading, make sure your Shapefile components are stored together in a ZIP archive. For example, your ZIP archive might contain roads.shp, roads.shx, roads.dbf, roads.prj and roads.cpg. The filenames should correspond to the same dataset.
Once your ZIP archive is ready, click the upload area on the converter page and select your file. You can also drag and drop the ZIP archive directly into the upload area. The converter will read the uploaded dataset and prepare it for conversion.

Step 3: Select GeoJSON as the Output Format
After uploading your Shapefile, locate the Convert To dropdown menu. This menu allows you to choose the output format for your dataset. Select GeoJSON from the available formats. The converter supports several other output formats, including GeoPackage, KML, CSV, FlatGeobuf, and GML. For this tutorial, make sure GeoJSON is selected.

Step 4: Understand the Coordinate Reference System
Before starting the conversion, it is important to understand how the coordinate reference system will be handled. Shapefiles can use different coordinate reference systems, including WGS 1984 (EPSG:4326), UTM coordinate systems, State Plane coordinate systems, Web Mercator (EPSG:3857), and other geographic and projected coordinate systems.
GeoJSON following the current RFC 7946 standard uses WGS 84 longitude and latitude coordinates. The Geo Server Data Downloader converter automatically reprojects GeoJSON output into WGS 84 (longitude/latitude), regardless of the original coordinate system of the Shapefile. For example, if your original Shapefile uses UTM Zone 14N, the converter transforms its coordinates into the required WGS 84 geographic coordinate system during conversion.
This is particularly important when working with datasets from different regions because the original projected coordinates are not simply copied into the GeoJSON output. For more background, read our guide to coordinate systems and projections.

Step 5: Start the Conversion
Once your source file has been uploaded and GeoJSON has been selected, click the Convert File button. The converter will read the Shapefile geometry and attribute information and generate the corresponding GeoJSON output. Depending on the dataset size, the number of features, and the complexity of the geometries, processing time may vary. Smaller datasets generally convert quickly, while larger datasets containing detailed polygons or thousands of features may require additional processing time.

Step 6: Download the Converted GeoJSON
After successful conversion, the tool will provide the resulting GeoJSON file for download. Save the file to your preferred project directory. Your Shapefile has now been converted into GeoJSON and is ready to be used in compatible GIS applications and web mapping workflows.

6. How to Open the Converted GeoJSON in QGIS
After downloading the GeoJSON file, you can verify the output using QGIS. Follow these steps:
- Open QGIS.
- Navigate to Layer → Add Layer → Add Vector Layer.
- Browse to the location where you saved your GeoJSON file.
- Select the .geojson file.
- Click Add.
QGIS will load the GeoJSON layer into the map canvas. You should now be able to view your converted geographic features. To verify the attribute information, right-click the layer in the Layers panel and select Open Attribute Table. Check whether the expected fields and feature records are available. You can also compare the converted GeoJSON with the original Shapefile to verify that the geographic features are positioned correctly.

7. What Happens to Attributes and Geometries During Conversion?
A common concern when converting GIS datasets is whether the original geographic features and attribute information will remain available. During a standard format conversion, the geometry and associated attributes are translated into the structure supported by the destination format.
For example, consider a zoning dataset containing polygon features with attributes such as Zone_Code, Zone_Name, Land_Use, City_Name and Area_Acres. The GeoJSON output can store these attributes inside the properties object associated with each feature. Similarly, the polygon geometries are represented using the corresponding GeoJSON geometry structure.
GDAL's GeoJSON driver supports reading and writing geographic features and their properties. Its documentation also describes support for common geometry types and attribute fields. However, some differences between formats should be considered. For example, Shapefile field names have specific limitations, and some data types may be represented differently when translated into another format.
If your dataset contains important identifiers, date fields, numeric values, or specialized attributes, always inspect the converted output before using it in a production workflow. For critical projects, compare the original and converted feature counts, geometry types, and attribute values.
| Item | In the Shapefile | In the GeoJSON |
|---|---|---|
| Coordinate system | Any projection, stored in the .prj file | WGS 84 longitude and latitude (EPSG:4326) |
| Field names | Limited to 10 characters | No practical limit |
| Dates | Date only, no time of day | Written as text, usually in ISO 8601 form |
| Text encoding | Set by a .cpg file or a code page, and often missing | UTF-8 |
| Files | Several files that must travel together | A single file |
8. Important Things to Check After Conversion
Although the conversion process is straightforward, checking the output is an important part of any GIS workflow. Here are some recommended quality-control checks:
1. Feature count
Compare the number of features in the original Shapefile with the number of features in the converted GeoJSON. Unexpected differences may indicate that some features were not successfully translated.
2. Attribute information
Open the attribute table and verify that important fields and their values are present. Pay particular attention to identification codes, names, numeric fields, and other essential attributes.
3. Coordinate reference system
Remember that the converter reprojects GeoJSON into WGS 84 longitude and latitude coordinates. Check the output location in QGIS to make sure the features appear in the correct geographic area.
4. Geometry validation
Inspect the converted points, lines, or polygons to confirm that their shapes and positions look correct. If the original dataset contains invalid geometries, conversion alone should not be assumed to repair them.
5. File size
GeoJSON is a text-based format, so datasets containing many detailed geometries can produce relatively large files. For particularly large datasets, consider whether GeoPackage or FlatGeobuf might be more suitable for your intended workflow.
Common problems and how to fix them
- Accented characters appear as question marks or odd symbols. The .dbf file was written in a legacy code page and no .cpg file declared it. Add a .cpg file that names the correct encoding and convert again.
- Very large integers lose digits. JavaScript numbers are only exact up to 9,007,199,254,740,991, so long ID numbers such as some parcel or account numbers are safer stored as text before conversion.
- The features land in the wrong place. The .prj file was missing from the ZIP, so the source coordinate system was unknown. Add it and convert again.
- The file will not load in a web map. A single bad coordinate, such as a value outside -180 to 180 or -90 to 90, can make some libraries reject the whole file.
Prefer the command line?
The converter uses GDAL, so the same result is available from the command line. The -t_srs option reprojects to WGS 84:
ogr2ogr -f GeoJSON -t_srs EPSG:4326 \
roads.geojson roads.shpFor other tools that do the same job, see our comparison of the top tools for GIS data conversion.
9. Why Use an Online Shapefile to GeoJSON Converter?
Traditional GIS conversion workflows often rely on desktop software such as QGIS, ArcGIS, or GDAL. These tools provide powerful conversion capabilities, but they may require installation, configuration, and some familiarity with GIS processing. An online converter offers a simpler alternative when you need to perform a straightforward format conversion.
The Geo Server Data Downloader GIS File Converter provides several practical advantages:
- Free access through a web browser.
- No desktop GIS installation required.
- Support for ZIP-packaged Shapefiles.
- Conversion into GeoJSON and other GIS formats.
- Automatic WGS 84 reprojection for GeoJSON output.
- Browser-based processing using WebAssembly.
- No need to upload local source files to a conversion server.
The converter is powered by GDAL, a widely used open-source geospatial data processing library. Whether you are a GIS analyst, student, web developer, researcher, or mapping professional, the tool provides an accessible way to convert supported spatial datasets without setting up a desktop processing environment.
You can access it here: Convert Shapefile to GeoJSON Online: Free GIS Converter.
Looking for Shapefiles to practice with? Our parcel data by city pages link to official municipal layers you can download.
Conclusion
Converting Shapefile to GeoJSON is a useful step when preparing vector datasets for web mapping, online GIS applications, and modern geospatial data exchange. While Shapefiles remain an important format in traditional GIS workflows, GeoJSON offers a convenient way to work with geographic features in web technologies and applications that use JSON.
With the Geo Server Data Downloader GIS File Converter, the conversion process is straightforward. Prepare your Shapefile as a ZIP archive, upload it, select GeoJSON as the output format, and start the conversion. The resulting GeoJSON file can then be opened in QGIS, integrated into compatible web mapping applications, or shared with other GIS professionals.
Have a Shapefile that you need to use in a web mapping project? Convert it to GeoJSON with the free GIS File Converter and make your spatial data ready for modern GIS applications.
References and further reading
The technical information in this article is based on the following official documentation and resources:
- IETF RFC 7946: The GeoJSON Format. Official specification describing GeoJSON structures, geographic features, geometries, and coordinate reference systems.
- GDAL Documentation: GeoJSON Driver. Technical documentation explaining GeoJSON reading, writing, geometry support, and attribute handling.
- GDAL Documentation: ESRI Shapefile Driver. Technical information about the Shapefile format and its associated files.
- GDAL Documentation: ogr2ogr. Official documentation for converting vector geographic data between different formats and coordinate reference systems.
- Geo Server Data Downloader: GIS File Converter. Online tool used for the practical conversion demonstrated in this tutorial.
This article is intended for educational purposes. Always validate converted spatial datasets before using them in professional GIS projects, particularly when geographic accuracy and attribute integrity are important.
Related guides
Ready to try it yourself?
Export ArcGIS REST services, WFS endpoints, and ArcGIS Online datasets to Shapefile, GeoJSON, KML, or GeoPackage — all in your browser.
Open the Downloader