Base64
T3Encode text to Base64 or decode it back, or turn a file into Base64 or a data URI. Everything runs in your browser.
How to use
- Encode turns your text into Base64. It reads the text as UTF-8, so accents, other alphabets and emoji survive the round trip.
- Decode turns Base64 back into text. Spaces and line breaks in the input are ignored, and both the standard and URL-safe alphabets are accepted.
- Swap moves the result into the input and flips the direction.
URL-safe Base64
Standard Base64 uses + and /, which have meanings in web addresses. The URL-safe form uses - and _ instead and drops the = padding. JWTs use it.
Files and data URIs
A data URI puts a file straight into HTML or CSS, for example <img src="data:image/png;base64,…">. Base64 makes data about a third larger, so it suits small images and icons.