clevr.tools
Dev Tools/Base64 Encode / Decode

Base64 Encode / Decode

Encode text to Base64 or decode Base64 back to plain text. Handles Unicode.

Plain Text

Base64

Base64 Encoding and Decoding

Base64 is an encoding scheme that converts binary data into ASCII text, making it safe to transmit in contexts that only support text — like email, URLs, or JSON payloads. You'll encounter Base64 everywhere in web development: data URIs for embedding images in CSS, Basic Auth headers, JWT tokens, and API responses that include binary data.

Decoding Base64 is equally common when debugging API responses, inspecting JWT payloads (the middle section of a JWT is Base64-encoded JSON), or reading encoded values from environment variables or config files.

This tool handles Unicode characters correctly — most naive implementations using just btoa() break on non-ASCII text like accented characters or emoji. Our encoder uses proper UTF-8 encoding so international text is handled correctly in both directions.