All tools / Formatters

XML Stringify & Unstringify

Turn XML into a single escaped string, or back again.

Runs in your browser · your data never leaves your device
Ad space

How it works

Stringify removes the whitespace between tags and escapes quotes and line breaks so the XML fits in one string literal. Unstringify reads the escaped text back into XML with each tag on its own line.

Frequently asked questions

Is the XML validated?

Only a basic check that it starts with a tag. Use the XML to JSON tool if you need to confirm it parses.

Related tools