.SLD

SLD File

OGC Styled Layer Descriptor
Ask a question
QUICK ANSWER

An SLD file is an XML document that defines the visual appearance of a GIS map layer - colors, line widths, fill patterns, and label rules. Open it in a text editor to read the XML, or load it into GeoServer or QGIS to apply the styling.

Developer: Open Geospatial Consortium (OGC) Category: GIS Files Open standard MIME: application/vnd.ogc.sld+xml
OPENS ON Windows macOS Linux Web
Related: .GPX · .GML · .KML · .SHP

On this page

19k+ extensions indexed
Last reviewed Sep 8, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the SLD file format?

An .sld file is an XML document conforming to the Open Geospatial Consortium (OGC) Styled Layer Descriptor standard, which specifies how geographic features on a map should be rendered - controlling colors, line widths, fill patterns, label styles, and symbol shapes for points, lines, polygons, and raster layers. SLD is an open, vendor-neutral standard, allowing any compliant GIS server or client to exchange .sld files and produce consistent cartographic output.

The root XML element is <StyledLayerDescriptor> with the OGC namespace. Inside, <NamedLayer> or <UserLayer> elements group one or more <FeatureTypeStyle> blocks, each containing <Rule> elements. Rules combine attribute filters with symbolizer elements - PointSymbolizer, LineSymbolizer, PolygonSymbolizer, RasterSymbolizer, and TextSymbolizer - allowing different features to render differently based on their data values.

SLD 1.0.0 was published in 2002; SLD 1.1.0 (2007) extracted the symbolizer core into a separate OGC Symbology Encoding (SE) 1.1.0 specification. GeoServer and MapServer accept .sld files natively as layer styles, and WMS servers can receive an SLD document as a URL parameter to override default styling at request time. QGIS uses its own .qml format but can import and export SLD for interoperability with other platforms.

.sld files are human-readable plain XML and can be authored in any text editor.

Security & safety

RISK: LOW

Plain XML text file with no executable content. No security risk from opening in a text editor or loading into GeoServer/QGIS.

Format details

in a nutshell
FULL NAMEOGC Styled Layer Descriptoraka SLD file, Styled Layer Descriptor
DEVELOPEROpen Geospatial Consortium (OGC)since 2002 (OGC SLD 1.0.0)
CATEGORYGIS Files
MIME TYPEapplication/vnd.ogc.sld+xml
TYPEXML text document (OGC standard)
STANDARDOpen · royalty-free
This extension is also used by…
  • AutoCAD Slide File - Legacy binary raster snapshot created by AutoCAD's MSLIDE command; entirely unrelated to GIS SLD; rarely encountered after AutoCAD 2000s.

Programs that open SLD files

Windows4 apps
GeoServer Open-source In GeoServer web UI: Styles → Add a new style → upload or paste SLD content → Validate → Submit.
QGIS Open-source Layer Properties → Symbology → Style → Load Style → choose SLD file.
Notepad / VS Code Open-source Open as plain text/XML for editing styling rules directly.
SLD editor (Geomajas project) Open-source Visual SLD editor; project is mostly unmaintained since ~2015 - prefer QGIS instead.
macOS2 apps
GeoServer Open-source Web UI accessible at http://localhost:8080/geoserver after startup; same SLD upload flow.
QGIS Open-source Layer Properties → Symbology → Style → Load Style → SLD.
Linux2 apps
GeoServer Open-source Deploy WAR to Tomcat; use web UI to manage SLD styles.
QGIS Open-source Available in all major distro repos; import SLD via Layer Properties.
Web1 app
GeoServer (web UI) Open-source Browser-based admin UI for uploading and validating SLD files.

Technical details

deep spec
XML root element`<StyledLayerDescriptor>` with OGC SLD namespace (`http://www.opengis.net/sld`)
OGC standard versionsSLD 1.0.0 (OGC 02-070, 2002) and SLD 1.1.0 (OGC 05-078r4, 2007)
Symbolizer elements`PointSymbolizer`, `LineSymbolizer`, `PolygonSymbolizer`, `RasterSymbolizer`, `TextSymbolizer`
Conditional rendering`<Filter>` elements use OGC Filter Encoding for attribute-based rule selection
Layer referencing`<NamedLayer>` references server-side layers; `<UserLayer>` defines inline feature data styling
MIME type`application/vnd.ogc.sld+xml`
WMS dynamic stylingSLD can be passed as `SLD` or `SLD_BODY` parameter in WMS `GetMap` requests
Symbology Encoding splitSLD 1.1.0 delegates symbolizer definitions to the separate OGC SE 1.1.0 specification
GeoServer integration`.sld` is GeoServer's native style format; manageable via GeoServer REST API
QGIS interoperabilityQGIS imports and exports SLD despite using `.qml` as its native style format
EncodingUTF-8 text (or per XML declaration); no compression or binary content
Typical size1 KB - 50 KB for a single map layer's styling rules
Released2002 (OGC SLD 1.0.0)
Latest versionSLD 1.1.0 (OGC 05-078r4, 2007)
Open standardYes · royalty-free
Specificationwww.ogc.org

SLD conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with SLD files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about SLD files.

Frequently asked questions

What is an SLD file?
An OGC Styled Layer Descriptor - an XML file that tells GIS map servers (GeoServer, MapServer) how to draw a map layer: colors, line widths, labels, and conditional rules.
How do I open an SLD file?
Any text editor works for reading/editing. To apply it: GeoServer (Styles → upload SLD) or QGIS (Layer Properties → Symbology → Load Style).
Can QGIS use SLD files?
Yes. QGIS can import SLD via Layer Properties → Style → Load Style, and can export styles as SLD for use in GeoServer.
What is the difference between SLD 1.0.0 and 1.1.0?
SLD 1.1.0 (2007) separates the symbolizer vocabulary into OGC Symbology Encoding (SE) 1.1.0 and adds support for more coverage rendering options. GeoServer supports both; most existing SLDs use 1.0.0.
Why are there so many conversion options to CAD formats in search results?
Confusion with AutoCAD .SLD slide files, which are completely unrelated. AutoCAD .sld is an obsolete binary raster format; GIS .sld is XML styling - the two share only the extension.

References

1Wikipedia - Styled Layer Descriptoren.wikipedia.org
2OGC - Styled Layer Descriptor standardwww.ogc.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.MDMarkdown Document
9.RPMSGRestricted Permission Message
10.TMPTemporary File

Related extensions

.GPXGPS Exchange Format
.GMLGeography Markup Language
.KMLKeyhole Markup Language
.SHPEsri Shapefile (geospatial vector data)
.RTMAPCompeGPS / TwoNav Tiled Raster Map
.KMZKeyhole Markup Language Zipped (Google Earth)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z