GIS Dissolve Tool (Merge by Field)
Merge features based on a common attribute value
What Does Dissolve Mean in GIS?
Dissolve is a fundamental geoprocessing operation that merges adjacent vector features sharing a common attribute value into a single unified feature. If you have a layer of 3,143 US counties and you need a single polygon per state, you dissolve by the STATE field: common boundaries between adjacent counties in the same state disappear, and you end up with fifty multipart polygons. The dissolve polygons operation is how every GIS analyst in every industry rolls detailed data up to coarser units without losing the original geometry precision.
The GIS Dissolve Tool on gis.tools lets you merge polygons by attribute directly in the browser. Drop your layer in, pick a field from the dropdown, optionally aggregate numeric columns with sum or mean, and export the result. There is no account creation, no upload, and no waiting on a server queue. It behaves like the QGIS Dissolve algorithm or the ArcGIS Pro Dissolve tool, but it runs locally in your browser using Turf.js and GEOS-compatible logic.
Dissolving is distinct from merging. Merging two layers stacks their features without combining geometry; dissolving removes shared boundaries between features that satisfy a grouping condition. A dissolve without a field flattens everything in the layer into one mega-polygon β the equivalent of calling ST_Union on the entire table in PostGIS.
How Dissolve Polygons Works
At a conceptual level, dissolve performs two steps:
- Group features by the chosen dissolve field (or all features if no field is specified)
- Union the geometries in each group so shared boundaries vanish
The union step uses a robust polygon union algorithm (typically Weiler-Atherton or the Martinez/Rueda algorithm, depending on the library). Behind the scenes, the tool walks through polygon edges, detects segments that appear in both neighbors, and removes them from the output boundary. The final geometry can be either a single polygon, a MultiPolygon, or a collection of disjoint parts if you opt for singlepart output.
Singlepart vs Multipart
Most GIS platforms default to multipart output: all features sharing a dissolve value, regardless of whether they touch, become one MultiPolygon. Singlepart output splits disjoint groups into separate features. QGIS exposes this as the "Keep disjoint features separate" checkbox.
Attribute Aggregation
Dissolve destroys the original per-feature attributes for any field you don't aggregate. You can typically keep the dissolve field itself, plus any field you explicitly aggregate with sum, mean, min, max, count, or first-value functions. The dissolve_with_stats QGIS plugin popularized this pattern.
Key Parameters and Options
Dissolve Field
Pick the attribute whose value groups features for merging. Common choices: state, region, zone, category, class, type. Leave blank to dissolve everything into one feature.
Aggregation Functions
Choose which numeric fields to preserve and how to summarize them. Typical options: sum (populations), mean (densities), max (peak elevations), count (feature count per group).
Keep Disjoint Separate
Toggle whether non-touching features with the same attribute should stay separate. Useful when you want to count islands or disconnected service territories.
Practical Applications
Administrative Boundary Aggregation
Turning counties into states, districts into regions, or census tracts into ZIP code tabulation areas is the textbook dissolve use case. Start with detailed boundaries, dissolve by the higher-level identifier, and you have a clean aggregated layer with proper topology.
Land Cover and Parcel Simplification
Adjacent land parcels with the same ownership or zoning can be merged into single polygons for display. Dissolving by land-use code produces a clean choropleth base that is much smaller than the raw parcel file.
Redistricting and Service Territories
Election commissions dissolve precincts into districts; utilities dissolve meter zones into substations; school districts dissolve attendance areas into schools. Each case follows the same pattern.
Buffer Cleanup
After buffering many overlapping points of interest, dissolving removes the internal lines so the output looks like one coverage footprint rather than a pile of intersecting circles. This is the classic "service area" workflow.
Watershed and Hydrology
Sub-watersheds can be dissolved into major basins by HUC code to produce hierarchical drainage maps.
Planning and Zoning
Urban planners dissolve zoning parcels by classification to produce clean base maps for comprehensive plans.
Ecological Mapping
Conservation biologists dissolve habitat patches by vegetation type to quantify landscape-scale coverage.
Step-by-Step Workflow in gis.tools
- Open the GIS Dissolve Tool (Merge by Field)
- Drag a vector file (GeoJSON, KML, zipped Shapefile) onto the drop zone
- Preview the layer on the map and inspect its attribute table
- Choose the dissolve field from the dropdown of available attributes
- Optionally enable "keep disjoint features separate" for singlepart output
- Optionally pick numeric fields to aggregate with sum, mean, min, or max
- Click "Dissolve" to compute the result
- Review the output layer and confirm feature counts match expectations
- Export as GeoJSON, KML, or Shapefile
Worked Example
You have a GeoJSON of 2,000 agricultural fields with a CROP_TYPE attribute and an AREA_HA attribute. You want to produce a map showing total hectares by crop type. Drop the file into the dissolve tool, choose CROP_TYPE as the dissolve field, aggregate AREA_HA with sum, and click Dissolve. In a few seconds you get a 27-feature layer (one per crop type) where each polygon is the merged footprint of all fields of that crop, carrying a total hectares value. You can then style the layer with the Graduated Styling tool to produce a quick crop-distribution map.
Common Pitfalls and Gotchas
- Topology errors in the input (self-intersections, overlaps, gaps) cause dissolve failures or unexpected sliver artifacts. Run Geometry Repair first.
- Attribute drift: dissolve drops fields you don't explicitly aggregate. Export a copy of the original attribute table if you need the discarded fields.
- Case-sensitive matching: "California", "CALIFORNIA", and "california" are treated as three different values. Normalize text with the Attribute Filter Builder first.
- Whitespace issues: leading or trailing spaces in field values prevent grouping. Trim before dissolving.
- NULL values: records with null dissolve-field values may all collapse into a single group or be dropped. Test with a small sample first.
- Mixed geometry types in one layer cannot be dissolved together β split lines and polygons into separate files.
- Invalid ring winding in GeoJSON can put holes on the wrong side of boundaries after union. Validate with GeoJSON Validator & Fixer.
- Large attribute cardinality: dissolving by a field with thousands of unique values produces thousands of groups and can be slower than expected.
Tips for Best Results
- Use the Column Statistics tool first to see how many unique values your dissolve field has and spot any anomalies
- For huge datasets, filter or clip first with the GIS Clip Tool (Clip Layer by Polygon) to keep the job tractable
- After dissolving, run the Simplify Preserving Topology tool to trim vertex counts
- Pair with the Area Calculator to compute per-group areas in the dissolve output
- Always preview the output on the map before exporting
Comparison with Other GIS Approaches
In PostGIS, dissolve is the one-liner SELECT state, ST_Union(geom) FROM counties GROUP BY state. In QGIS, it's Vector > Geoprocessing Tools > Dissolve. In ArcGIS Pro, it's the Dissolve tool in the Data Management toolbox. All three produce equivalent output; the main difference is scale. PostGIS handles millions of features with indexes and parallelism. QGIS and ArcGIS handle hundreds of thousands comfortably with disk-backed storage. The browser-based GIS Dissolve Tool on gis.tools is the quickest option for typical workloads of up to a few tens of thousands of features, with no install and no upload.
Performance Considerations
Dissolve cost scales with the number of features per group and the complexity of their shared boundaries. A group of 1,000 polygons with simple rectilinear edges dissolves in milliseconds; the same count with highly sinuous boundaries may take several seconds. Browser memory is usually the first limit on very large jobs. Pre-simplify the input if the source has excessive vertex density β you probably don't need 20-decimal-place precision for an administrative roll-up.
Data Privacy and Browser-Based Processing
Dissolve runs entirely in your browser. Your attribute data never leaves your machine, which matters when you are working with confidential parcel records, health boundaries, or commercial territory data. There is no upload, no telemetry, and no backend database. Refresh the page and your data is gone.
Related GIS Concepts
Dissolve is closely related to spatial aggregation and the classic GROUP BY operation in SQL. Merge is a different operation (concatenate layers without touching geometry). Union takes two layers and combines them keeping all geometries (see Union Tool). Aggregate polygons in some platforms is a dissolve variant that also fills small interior gaps. Eliminate sliver polygons is a cleanup pass often run after dissolve to merge tiny artifacts into their largest neighbor.
Frequently Asked Questions
How do I dissolve all polygons into one?
Leave the dissolve field blank (or choose "no field") and click Dissolve. The entire layer collapses into a single feature.
Will dissolve remove my attribute data?
Only fields you don't explicitly aggregate are dropped. The dissolve field and any aggregated fields are preserved.
Can I dissolve by multiple fields?
Yes β in the tool you can concatenate two fields into one before dissolving, or select multiple fields as a composite group key.
Does dissolve work on lines or points?
Yes for lines (adjacent segments with the same attribute become one MultiLineString). Points generally become MultiPoint collections.
Related Tools on gis.tools
Related Tools
View All ToolsRoute Along Network
Find shortest path through a user-provided network
GeoprocessingGIS Clip Tool (Clip Layer by Polygon)
Clip features to a polygon boundary
GeoprocessingGIS Buffer Tool
Create buffers around features with customizable distance and join style
GeoprocessingSnap Points to Line
Snap points to the nearest line or road
GeoprocessingPolygon Overlap Checker
Detect slivers and overlaps between polygons
GeoprocessingGIS Intersect Tool
Find the geometric intersection of two layers
Geoprocessing100% client-side processing - your data stays private and never leaves your device