onlinexmltools logo
build

Xml to base64 encoder

World's simplest xml tool

Free online XML to Base64 converter. Just load your XML and it will automatically get encoded to Base64. There are no ads, popups or nonsense, just an awesome XML to Base64 encoder. Load JSON, get Base64. Created by developers for developers.
settings
fullscreen fullscreen_exit
swap_horiz
star
Import from file
Save as...
Copy to clipboard
Can't convert.
An error has occured.
Export to Pastebin
Save as...
Copy to clipboard
Encoded base64 line length
Enable line splitting
How many characters per line
Outputs base64 without splitting
help
Xml to base64 encoder tool What is a xml to base64 encoder?
This tool converts an XML (Extensible Markup Language) data structure to base64 encoding. It also lets you specify the maximum encoded line length and split output into chunks, or just output it as one continous string.
books
Xml to base64 encoder examples Click to use
Simple base64 encoded XML
This example encodes XML to base64 and turns on line splitting every 40 characters.
<note> <from>Megan</from> <to>Grant</to> <heading>Reminder</heading> <body>Don't forget to update the website tomorrow.</body> </note>PG5vdGU+CiAgPGZyb20+TWVnYW48L2Zyb20+CiAg PHRvPkdyYW50PC90bz4KICA8aGVhZGluZz5SZW1p bmRlcjwvaGVhZGluZz4KICA8Ym9keT5Eb24ndCBm b3JnZXQgdG8gdXBkYXRlIHRoZSB3ZWJzaXRlIHRv bW9ycm93LjwvYm9keT4KPC9ub3RlPg==
Required options
These options will be used automatically if you select this example.
Enable line splitting
How many characters per line
Another simple XML to base64 example
This example also converts XML to base64 but it doesn't turn on line chunking so you get one large base64-encoded string.
<food_menu> <food> <name>Breakfast Waffles</name> <price>$4.40</price> <description> Two tasty, freshly cooked waffles with plenty of real Canadian maple syrup. </description> <calories>500</calories> </food> <food> <name>Strawberry Waffles</name> <price>$8.00</price> <description> Two tasty, freshly cooked waffles, filled with strawberries and whipped cream. </description> <calories>750</calories> </food>PGZvb2RfbWVudT4KICA8Zm9vZD4KICAgIDxuYW1lPkJyZWFrZmFzdCBXYWZmbGVzPC9uYW1lPgogICAgPHByaWNlPiQ0LjQwPC9wcmljZT4KICAgIDxkZXNjcmlwdGlvbj4KICAgICAgVHdvIHRhc3R5LCBmcmVzaGx5IGNvb2tlZCB3YWZmbGVzIHdpdGggcGxlbnR5IG9mIHJlYWwgQ2FuYWRpYW4gbWFwbGUgc3lydXAuCiAgICA8L2Rlc2NyaXB0aW9uPgogICAgPGNhbG9yaWVzPjUwMDwvY2Fsb3JpZXM+CiAgPC9mb29kPgogIDxmb29kPgogICAgPG5hbWU+U3RyYXdiZXJyeSBXYWZmbGVzPC9uYW1lPgogICAgPHByaWNlPiQ4LjAwPC9wcmljZT4KICAgIDxkZXNjcmlwdGlvbj4KICAgICAgVHdvIHRhc3R5LCBmcmVzaGx5IGNvb2tlZCB3YWZmbGVzLCBmaWxsZWQgd2l0aCBzdHJhd2JlcnJpZXMgYW5kIHdoaXBwZWQgY3JlYW0uCiAgICA8L2Rlc2NyaXB0aW9uPgogIDxjYWxvcmllcz43NTA8L2NhbG9yaWVzPgo8L2Zvb2Q+
Required options
These options will be used automatically if you select this example.
Enable line splitting
info
Pro tips Master online xml tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinexmltools.com/convert-xml-to-base64?input=%3Cnote%3E%0A%20%20%3Cfrom%3EMegan%3C%2Ffrom%3E%0A%20%20%3Cto%3EGrant%3C%2Fto%3E%0A%20%20%3Cheading%3EReminder%3C%2Fheading%3E%0A%20%20%3Cbody%3EDon%27t%20forget%20to%20update%20the%20website%20tomorrow.%3C%2Fbody%3E%0A%3C%2Fnote%3E&base64-split=true&base64-split-length=40
dashboard
All xml tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly beautify an XML data structure.
Quickly compress an XML data structure.
Quickly check XML for errors and report them.
Quickly convert an XML document to a JSON document.
Quickly convert a JSON document to an XML document.
Quickly convert an XML document to a CSV document.
Quickly convert a CSV document to an XML document.
Quickly convert an XML data structure to YAML markup.
Quickly convert a YAML document to XML data.
Quickly convert an XML document to a TSV file.
Quickly convert a TSV document to an XML file.
Quickly convert an XML data structure to Base64 encoding.
Quickly decode a Base64-encoded XML data structure.
Quickly convert an XML file to a plain text document.
airport_shuttle
Coming soon These xml tools are on the way
Syntax Highlight XML
Preview an XML data structure in your browser.
XML Editor
Edit XML documents in your browser.
Display XML Statistics
Display detailed information about an XML data structure.
Compare Two XML Files
Diff XML documents and show file differences visually.