Base64 Encoder & Decoder
Encode and decode text with Base64.
- On your device
- No signup
Private on your device
Your information stays on your device and is not uploaded.
Encode and decode text with Base64.
Decode JWT header, payload, and expiry—including Bearer tokens—on your device.
Format, minify, and validate JSON with optional key sorting.
Compare two JSON documents and instantly see added, removed, and changed values. JSON mode highlights changed keys with path hints.
Format, minify, and validate XML with readable indentation.
Compare two XML documents and see tag, attribute, and text line changes.
Compare source files such as JavaScript, TypeScript, Java, Python, HTML, CSS, and SQL.
Compare CSV or TSV files, match rows with an optional key column, and highlight changed cells.
This text to Base64 converter encodes strings for HTTP headers, JSON fields, and Basic auth examples. Paste UTF-8 text, get Base64 output, and copy into Postman, curl, or your application code.
Basic auth uses Base64 of `username:password`—still send over HTTPS only.
Large files should use dedicated file Base64 tools rather than pasting megabytes into a text area.
Paste or type text, click encode, copy Base64 output. Use decode mode to reverse the operation.
Example: encode `user:password` to Base64 for an HTTP Basic Authorization header example in documentation.
Encodes plain text to Base64 or decodes Base64 back to text on your device using standard encoding. Large inputs are processed locally.
Results are based on the inputs you provide and may not cover every edge case. This tool is for general use and is not professional advice.
Your image stays on your device and is not uploaded.
These pages use the same base64 encoder & decoder with examples tailored to different tasks.
FAQ
Yes for UTF-8 text. Encoded output represents the UTF-8 byte sequence.
Some tools wrap long Base64 lines. Remove whitespace if your parser rejects wrapped strings.
Invalid characters or padding show an error instead of garbage text.
Page last reviewed: