Convert XML to a Data URI
Turn any XML configuration into a data: URL — base64 or percent-encoded — ready to embed in HTML, CSS or your code.
Input
Output
About Convert XML to a Data URI
Convert XML to a Data URI wraps your document in a data: URL. Use base64 or percent-encoding to embed XML directly in HTML src attributes, href links, CSS or documentation.
Features
How to Use
Examples
The sample becomes data:application/xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGNhdGFsb2c+…
Benefits
Frequently Asked Questions
Is my XML sent to a server?
No. Everything runs locally in your browser. Your data is never uploaded, stored or logged.
Can I download the result?
Yes — use the Download button below the output area, or Print / Save PDF for a printable copy.
More XML Tools
View AllGenerate XML Art
Convert an image into a valid ASCII-art-like XML document — every row ...
Convert Base64 to XML
Free Base64 to XML decoder that accepts raw, wrapped or data-URL Base6...
Convert BSON to XML
Decode a base64 BSON (Binary JSON / MongoDB) string back into a readab...
Convert Properties to XML
Parse a Java .properties file and rebuild it as a nested XML document ...
Validate XML
Free XML validator that checks a document for well-formedness and repo...