tooldura

All tools

Base64 Encoder/Decoder

Encode text or files to Base64, decode Base64 and base64url back again

About Base64 Encoder/Decoder

The Base64 Encoder/Decoder converts text, tokens and whole files to Base64 and back, in both the standard alphabet and the URL-safe one used by JWTs and query strings. Drop in an image to get a data URI for your CSS, or paste a token segment to read what's inside it.

100% FreeNo limits or paywalls
PrivateData stays in your browser
InstantNo upload or wait time
Any DeviceMobile, tablet, desktop

The guide behind this tool

Base64 Is Not Encryption: What It Does and Why It Exists

Three bytes become four characters, which is where the 33 percent size increase and the trailing equals signs come from. And why it hides nothing.

7 min read

How to use Base64 Encoder/Decoder

  1. 1

    Choose Encode or Decode.

  2. 2

    Paste your text or Base64 string, or drop a file in to encode it.

  3. 3

    Copy the result, or download it when the decoded data turns out to be a file rather than text.

Frequently Asked Questions

Yes. The URL-safe alphabet uses - and _ where standard Base64 uses + and /, and usually drops the = padding. Both are accepted on decode without a setting to flip, and the padding is restored for you. Tick URL-safe when encoding to produce that variant.