Base64 encode

Text to Base64 (UTF-8), standard, base64url for JWTs and addresses, or MIME lines of 76 characters. A whole list at once, line by line.

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

Encode text as Base64

Base64 writes any bytes using only letters, digits and two symbols, so they survive places made for plain text: e-mail, JSON, an address, an HTML attribute. Type or paste the text, choose the style and press "Encode". The text is turned into UTF-8 bytes first, so "Zażółć" is always WmHFvMOzxYLEhw==, the same as in Python, Java or the command line.

"Standard" is what most APIs and data: addresses expect. "base64url" swaps + and / for - and _ and drops the = padding: that is the form inside JWTs and anything that goes into an address or a file name. "MIME" breaks the result into lines of 76 characters, as e-mail bodies and PEM-like blocks need.

A whole list at once. Switch on "Separately for each line" and every line is encoded on its own: a column of logins or keys pasted from Excel comes back as a column of Base64, in the same order, with empty lines kept. "Results as CSV" puts the original next to each result.

Remember that Base64 is not encryption. Anyone can decode it in a second, here or anywhere else, so it hides nothing: it only makes bytes travel safely. And it makes them about a third bigger.

Examples

  • "Zażółć" encoded for an API test: WmHFvMOzxYLEhw==.
  • A list of user:password pairs turned into values for Basic authentication headers, one per line.
  • A string for a JWT test written as base64url, without padding.

Who it is for

Developers and testers preparing requests, headers and test data, and anyone who needs to put text where only "safe" characters fit.