Prepare text for a text-only field
Encode a short text value when a system expects Base64 rather than raw UTF-8 text. Decode the value again before treating it as readable content.
Encode, decode, inspect and repair Base64 instantly. UTF-8 safe, Base64URL aware, and private in your browser.
Runs locally · No signup · Files stay on your deviceRuns locally in your browser. Your text and files never leave your device.
Paste text or Base64 to begin.
Base64 is a binary-to-text encoding scheme that represents bytes with 64 printable characters. It is useful when data needs to travel through JSON, HTML, email, configuration files or APIs. Base64 is encoding, not encryption.
Encode a short text value when a system expects Base64 rather than raw UTF-8 text. Decode the value again before treating it as readable content.
Paste a Base64 value or data URI to identify whether the result is text, an image, or binary data before downloading or using it elsewhere.
Use standard Base64 for ordinary encoded data. Use the Base64URL output option when a URL- and filename-safe alphabet is required.
Every three input bytes (24 bits) become four 6-bit values mapped to the Base64 alphabet. That is why Base64 is usually about one third larger than its source.
const bytes = new TextEncoder().encode("Hello 👋");
const binary = String.fromCharCode(...bytes);
const encoded = btoa(binary);
Buffer.from("Hello 👋", "utf8").toString("base64");Some APIs accept images and files as Base64 or data URLs because JSON is text-based. Base64 does not compress, encrypt or make data intelligent; it only changes how bytes are represented.
Base64 is a binary-to-text encoding method that represents bytes using 64 printable characters. It is encoding, not encryption.
No. Anyone with a decoder can recover the original bytes.
Base64URL uses - and _ instead of + and /, and commonly omits trailing padding.
Padding completes the final four-character block when the source bytes do not divide evenly into groups of three.
Yes. Text is converted to UTF-8 bytes before Base64 encoding.
No. Encoding, decoding and previews stay in this browser; this tool has no upload API.
No. Base64 is a deterministic encoding format. APIs sometimes use it to carry binary data in text payloads.