The Complete Guide to WFS (Web Feature Service)
Understand what a WFS is, how it differs from WMS, how to query it, and how to download features from any Web Feature Service endpoint using free browser tools.
If you have ever worked with geospatial web services, you have probably heard the acronym "WFS" alongside "WMS." Both are OGC standards, both serve geospatial data over the web, and both start with "Web." But they do fundamentally different things, and confusing them can waste hours.
This guide explains what a WFS is, when to use it, how to query it, and how to pull data out of it in a usable format.
What is a WFS?
WFS stands for Web Feature Service. It is an Open Geospatial Consortium (OGC) standard for serving vector features — points, lines, and polygons with attributes — over HTTP.
In plain terms: a WFS gives you the actual data. When you request features from a WFS, you receive their geometry and attributes as GML (Geography Markup Language), the OGC's XML-based format, or as GeoJSON if the server supports it.
WFS vs WMS: the key difference
WMS (Web Map Service) returns images. WFS returns data.
| Aspect | WMS | WFS |
|---|---|---|
| Returns | Rendered images (PNG, JPEG) | Vector features with attributes |
| Client can style | No — server renders the style | Yes — client styles each feature |
| Client can query attributes | Limited (GetFeatureInfo only) | Yes — full access |
| File size | Small (image) | Large (raw data) |
| Best for | Background map layers | Analysis, editing, downloads |
| Analogy | A printed map | A database export |
Common WFS operations
The WFS standard defines a handful of operations. In practice, three matter most for downloading data:
GetCapabilities
Returns an XML document describing everything the server offers: which layers exist, what coordinate systems are supported, and what operations are available. This is always your first request.
https://example.com/geoserver/wfs?service=WFS&request=GetCapabilitiesDescribeFeatureType
Returns the schema of a specific layer — the field names and data types. Useful before you download so you know what you are getting.
https://example.com/geoserver/wfs?service=WFS&request=DescribeFeatureType&typeName=my:layerGetFeature
This is the one that actually downloads features. You specify a layer, a filter, and an output format.
https://example.com/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typeName=my:layer&outputFormat=application/jsonReading a WFS URL
A typical WFS GetFeature URL is made up of key-value pairs. Here are the ones you will see most often:
| Parameter | Meaning |
|---|---|
| service=WFS | Declares that this is a WFS request |
| version=2.0.0 | WFS protocol version (1.0.0, 1.1.0, 2.0.0) |
| request=GetFeature | The operation you want |
| typeName=ns:layer | The specific layer to fetch |
| outputFormat=... | Format of the response (GML, GeoJSON, shapefile) |
| count=100 | Max number of features to return |
| bbox=minx,miny,maxx,maxy | Spatial filter (bounding box) |
| cql_filter=... | Attribute filter (server-specific syntax) |
| srsName=EPSG:4326 | The coordinate system of the response |
Common output formats
Different WFS servers support different output formats. The most common are:
- GML (application/gml+xml) — the OGC standard, always supported
- GeoJSON (application/json) — supported by most modern servers
- Shapefile (application/zip) — supported by GeoServer and some others
- KML — for Google Earth
- CSV — sometimes available
If you just want to see the data, ask for GeoJSON. If you need to import it into desktop GIS, ask for Shapefile.
Where to find WFS endpoints
WFS services are common in:
- National spatial data infrastructures (e.g. INSPIRE in the EU)
- Government open data portals
- Research institutions and universities
- Environmental monitoring agencies (NOAA, USGS, EEA)
- Municipal and regional GIS departments
The URL almost always ends in something like /wfs, /geoserver/wfs, or /ogc.
How to download WFS data with a browser tool
The easiest way to download from a WFS is through a dedicated browser tool. Here is the workflow with Geo Server Data Downloader:
- Copy the WFS root URL (usually ends in /wfs).
- Paste it into the Downloader's URL field.
- The tool fetches GetCapabilities and lists available layers.
- Select the layer you want and click Add.
- The layer appears on the map.
- Use Bulk Export to download as Shapefile, GeoJSON, KML, or GeoPackage.
Frequently asked questions
Is WFS free to use?
Yes — WFS is an open standard, and running a WFS server requires no license fee. The data itself may have usage restrictions, so always check the metadata.
How does WFS compare to ArcGIS REST FeatureServer?
Both serve vector data over HTTP, but WFS is an OGC standard supported by many servers (GeoServer, MapServer, QGIS Server, deegree), while ArcGIS REST FeatureServer is Esri-specific. In practice, WFS is more portable; FeatureServer has a richer query API.
Why is my WFS request timing out?
Large WFS requests can be slow. Try adding a bbox filter to restrict the geography, or a count parameter to limit the number of features. If the server supports it, request GeoJSON instead of GML — it is far smaller.
Summary
WFS is the open standard for serving vector data over the web. It is more capable than WMS for analysis, works across many server platforms, and — with the right tool — is easy to download.
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