Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings back to text.

Tool
Enter text or a Base64 string below.
Loading...
Loading...

About Base64 Encoder / Decoder

Base64 is the encoding that lets binary data travel through text-only channels. When you embed an image in a CSS file as a data URI, attach a file to a JSON payload, or stuff a small asset into an HTML page, it's almost certainly Base64 underneath. It maps every three bytes onto four printable ASCII characters, which is why encoded output is roughly a third larger than the original.

This tool encodes in both directions. Type or paste text to get its Base64 form, or paste a Base64 string to recover the original — useful when you're staring at an encoded value in a config file, a JWT segment, or a log line and need to know what it actually says. You can also drag a file in to encode its raw bytes, handy for building data URIs or inlining small assets.

It all happens in the browser, so files never upload and pasted strings never reach a server. That makes it safe for encoding credentials, certificates, or any payload you wouldn't want passing through someone else's backend.

How to use Base64 Encoder / Decoder

  1. Choose encode or decode

    Encoding turns readable text or file bytes into Base64. Decoding turns a Base64 string back into its original text or bytes.

  2. Enter text or drop a file

    Type or paste into the input, or drag a file onto the drop zone to encode its raw contents — useful for data URIs and inline assets.

  3. Read the result

    The converted output appears instantly as you type. Copy it into your config, CSS data URI, or API request.

  4. Decode unknown values

    If you've found a Base64 string in a token or log and want to know what it contains, paste it into decode to reveal the underlying text.

Frequently asked questions