Kadben

Base64 decoder and encoder

Paste Base64 to decode it, or reverse the direction to encode text or a file. Both the standard and the URL-safe alphabet are read.

Runs in your browser. Nothing you paste or choose is uploaded.

Base64 encoder and decoder

    Add a step
    Result

      How to use it

      1. Paste the Base64 text, or choose a file to encode.
      2. The result appears at once; binary data is shown as hex and can be downloaded.
      3. Press “Reverse the direction” to encode instead of decode.

      Rules and limits

      How Base64 is read and written

      Limits

      Questions and answers

      When do I need the URL-safe alphabet?

      When the result goes into a URL, a file name or a JWT: there + and / have other meanings, so - and _ stand in for them.

      Why do I see hex instead of text?

      The decoded bytes are not readable text (for example an image or compressed data). Download the result to get the file, or add a step such as “gzip decompress”.

      Why does it say “Not Base64”?

      The text has a character outside both alphabets, or an “=” before the end, often because two values or a quotation mark were pasted together. The message gives the position of the first such character.

      Related tools