Online XSLT Compiler and Tester
Transform XML for free using XSLT 1.0, 2.0, or 3.0.
Why Use Our XSLT Tool?
- Instant XML & XSLT validation
- Clear errors with line and column
- Automatic XML formatting on paste
- Copy, download and reuse output
- No installation or sign-up
Features & Supported Capabilities
- Supports XSLT 1.0, 2.0 and 3.0
- Automatically detects the XSLT version
- Produces XML, HTML or plain-text output
- Processes files securely without storing them
- Supports XML and XSLT files up to 2 MB
About this online XSLT tester and compiler
This free online XSLT tester lets you run an XSLT transformation without installing an XSLT processor. Paste or upload your XML and your stylesheet and the output appears straight away, with exact line and column numbers if the stylesheet or the XML has an error. All of XSLT 1.0, 2.0 and 3.0 are supported, detected automatically from your stylesheet's version, so 2.0/3.0 features such as grouping, regular expressions and maps work as expected.
Unlike most tools on DevTooling, the XSLT compiler runs on the server: your XML and XSLT are sent to perform the transformation, held in memory for that one request and never stored. To keep that safe for everyone, a stylesheet can't read or write files, or load content from anywhere else — so document(), xsl:import, xsl:include and xsl:result-document with an external URI aren't available, and neither is inline script such as msxsl:script. To tidy your XML first use the XML formatter; to see what changed between two stylesheets use XSLT compare.
Frequently Asked Questions
Everything you might want to know about the online XSLT Compiler.
Run. The result appears in the Transformation
Output pane, ready to copy or download.
version attribute: version="2.0" or version="3.0".
<msxsl:script>
code would mean running arbitrary code on the server for any visitor. A stylesheet
containing it returns a clear error instead of executing.
<xsl:output method="html"/> (or "xhtml") in your
stylesheet and emit HTML elements from your templates — this is one of the most common
uses of XSLT, turning raw XML data into a formatted page.
/library/book[1]/title. XSLT is the transformation language — it uses XPath
expressions inside its templates to select the nodes it acts on.
msxsl:script only work on the processor that defines them. Check your
stylesheet's version attribute and avoid processor-specific extensions if
it needs to run the same way everywhere.
- XSLT 1.0: Use for simple XML transformations and maximum compatibility with older systems or browsers.
- XSLT 2.0: Use for more complex transformations requiring grouping, regular expressions, multiple output files, stronger data types, and improved XPath.
- XSLT 3.0: Use for modern and advanced transformations involving JSON, maps, arrays, streaming, packages, higher-order functions, and improved error handling.