toolo.dev

Base64 Decode Online

Base64 decode online to readable UTF-8 text. Accepts Base64URL, missing padding and data: URLs, and saves images, PDFs or ZIP files with the right extension.

About the Base64 Decoder

Base64 decode a string and read the result as UTF-8 text, or save it as a file when it turns out to be an image, a PDF or a ZIP. Paste standard Base64, Base64URL, a value with its = padding missing, or a whole data: URL; the decoder tidies the input before decoding it.

Base64 strings turn up all over a developer's day: the data values in kubectl get secret -o yaml, an Authorization: Basic header in a request log, the middle part of a JWT, a Content-Transfer-Encoding: base64 block in raw email, or an API field that carries a PDF. When the decoded bytes aren't text, you see a hex preview and can download the file with the right extension.

  1. Paste the string into Base64 to decode. Load sample decodes a short greeting with accents, Chinese characters and an emoji.
  2. Text appears under Decoded text, with the byte count below it. The count is bytes, not characters, so 你好 adds 6, not 2.
  3. If the bytes aren't valid UTF-8, you get This looks like binary data with the size, and a Hex preview of up to the first 4,096 bytes. The first few bytes tell you the file type; the Guide tab lists the common ones.
  4. Click Download file to save binary data. PNG, JPEG, GIF, PDF, ZIP and gzip are recognized from their first bytes and get the right extension. Anything else is saved as decoded.bin.
  5. A red Error box means the string has characters Base64 doesn't use, or the wrong length. The Guide tab lists the usual causes and how to fix each one.