DexTools

Base64 Encoder and Decoder

Encode text to Base64 or decode it back, with the URL-safe alphabet and honest errors for binary data.

Nothing leaves your browser Dex Dev
Result

The encoded result appears here.

Computed in this tab as you type.

Save to DriveInsert into Office

Saving needs a Dex account. The tool never does.

How it works

  • Choose Encode or Decode, then type or paste. The result updates as you type and can be copied with one click.
  • Encoding is UTF-8 aware, so accented characters and emoji survive the round trip rather than turning into mojibake. Decoding uses a strict UTF-8 decoder, so bytes that are not text produce an explanation instead of replacement characters.
  • The URL-safe option swaps + and / for - and _, and drops the padding, which is what JWT segments and query parameters expect.
  • Use result as input flips the direction and moves the output into the input box, so you can round trip something without copy and paste.

Examples

Checking a value in a query string

Paste the Base64 from a URL parameter, choose Decode and turn on URL-safe. The readable value appears immediately, which is usually faster than reproducing the request.

Embedding a small image

Encoding a short string for a data URI is fine. For an actual image, use the image compressor: Base64 adds about a third to the size and defeats caching.

Frequently asked questions

Is Base64 encryption?

No. It is an encoding: anyone can reverse it without a key. Treat decoded content as plain text, which is why pasting a token into a Base64 decoder is safe but pasting one into a random website is not.

Why does decoding fail with a UTF-8 error?

The Base64 was valid but the bytes it represents are not text, for example the start of a PNG or a compressed payload. This tool decodes text; binary needs a different viewer.

What is URL-safe Base64?

Standard Base64 uses + and /, which have to be escaped in a URL. The URL-safe variant uses - and _ and omits the trailing =, so the value can sit in a path or query string unchanged.

Is there a size limit?

The page handles a few megabytes comfortably because the conversion is a single pass in memory. Very large inputs will make the browser work, so prefer the batch path for files.