JSONKittJSONKitt

Converters

XML to String

Escape an XML document as a JSON string.

Drop a .json or .txt file on the editors. Max 5 MB. UTF-8. Ctrl/Cmd+Enter formats, Ctrl/Cmd+K clears, Ctrl/Cmd+S downloads.

Input
Output

About XML to String

Escape an XML document as a JSON string.

Frequently asked questions

Does this tool upload my data?
No. JSONKitt runs this transform in your browser. Skip Share and API fetch if you need the payload to stay on the device.
Need to pretty-print JSON first?
Open the JSON Formatter to beautify or validate, then come back to this tool with clean input.

Related JSON tools