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 AllConvert YAML to XML
Free YAML to XML converter that parses mappings, sequences, quoted sca...
Convert XML to CSV
Free XML to CSV converter that flattens repeated XML elements into a C...
Convert XML to TSV
Free XML to TSV converter that flattens repeated XML elements into a t...
Extract All XML Values
Extract only the values from an XML document — all text content and at...
Convert a Data URI to XML
Decode a data: URL (base64 or percent-encoded) back into a readable, p...