Base64 decode

Base64 or base64url back to text (UTF-8) or to bytes in hex. Padding and line breaks optional; it tells you when the bytes are a file, not text.

The data entered in the form are processed only in your browser and will not be saved or sent anywhere.

Decode Base64 to text

A strange string ending in == in a log, an e-mail header or an API answer? Paste it and press "Decode" to see what is inside. Both alphabets are read (standard + / and base64url - _), the = padding may be there or not, spaces and line breaks are skipped, and a leading data:...;base64, is dropped by itself.

The bytes are read as UTF-8 text, so Polish letters and emoji come out right: WmHFvMOzxYLEhw== is "Zażółć". If a character does not belong to Base64, the message names it and its position, so you can see where a copy got broken.

Not every Base64 is text. Images, PDFs and archives are often sent as Base64 too. When the bytes are not text, the tool says so instead of printing gibberish, and when it recognises the file by its first bytes it names it: "a PNG file", "a PDF file". Choose "Bytes in hex" to see the bytes themselves (xYU= is C5 85, the UTF-8 for "ą").

A column at once. With "Separately for each line" each line is decoded on its own, which is handy for a column of values exported from a database. A bad line is named by its number, so the rest is not lost in guessing.

Examples

  • The middle part of an e-mail header (=?UTF-8?B?...?=) decoded to read the subject.
  • A column of Base64 tokens from a database export, decoded line by line.
  • A suspicious string from a log that turns out to be a PNG image, not text.

Who it is for

Developers, admins reading logs, testers, and anyone who found a string of letters ending in == and wants to know what it says.