The result differs from another encoder
compare UTF-8 encoding, BOM, whitespace and CRLF/LF line endings byte for byte.
Encode XML as standard or URL-safe Base64 while preserving the source representation. Review, copy or download the result.
This page encodes XML into Base64 without applying format-specific validation or transformation. Use Standard or URL-safe output according to the receiving protocol, then copy or download the value.
Convert now
Enter or upload
Paste text or choose a file
Choose an action
Encode, decode or inspect
View results
Review output and byte details
Input bytes
101010 111100 110101 ...
Split into 6-bit groups
101010 111100 110101 ...
Convert to indexes
42 60 53 ...
Base64 characters
q 8 1 ...
Paste the XML source exactly as it should be encoded.
Keep Encode selected and choose the output option shown by the tool.
Review the output and byte information, then copy or download the result.
The XML source is encoded without validation. Declarations, namespaces, whitespace, processing instructions and any BOM remain part of the source bytes.
Use Standard Base64 for the normal RFC 4648 alphabet. Use URL-safe only when the receiving system expects Base64URL; padding rules can differ by protocol.
Validate the decoded document with a format-specific tool after conversion; successful Base64 decoding proves only that the byte representation was recoverable.
Typical workflows include:
Important constraints:
compare UTF-8 encoding, BOM, whitespace and CRLF/LF line endings byte for byte.
Base64 conversion can still succeed; validate the original document with a format-specific tool.
The XML source is encoded without validation. Declarations, namespaces, whitespace, processing instructions and any BOM remain part of the source bytes.
No. It converts the supplied text or bytes. Use a dedicated parser, formatter or validator when syntax correctness matters.
Standard Base64 uses + and /. Base64URL uses - and _ and may omit padding; choose the form required by the receiving system.
Yes. Whitespace, indentation, BOM and CRLF/LF choices are part of the source bytes, so visually similar documents can produce different Base64 strings.
Continue with the localized page that matches the next operation:
Paste your input above, run the conversion, and copy or download the result.