Tick URL-safe if you need it for a token or a URL.
Copy the Base64 string.
About XML to Base64
SOAP and other XML messages are often embedded in Base64 when they have to travel inside another document, such as a signed assertion, a payment callback or a field in a database.
The XML is checked for syntax errors before it is encoded, so you do not end up with a perfectly encoded document that nobody can read. Whitespace between tags is removed, which keeps the Base64 string short.
Frequently asked questions
Does the encoding change my XML?
The text is encoded as it is, with only the whitespace between XML tags removed in the case of XML. Decoding gives it back.
Is this secure?
No. Base64 is an encoding, not encryption, and anybody can reverse it. Do not rely on it to protect secrets.
How do I turn it back?
Use the Base64 to XML tool, which decodes the string and formats the XML.
Why URL-safe?
Standard Base64 contains + and / which have special meanings in URLs. URL-safe replaces them with - and _.