$ base64

Base64 Encode / Decode

Convert text to Base64 and back, with URL-safe mode and full Unicode support. Runs in your browser.

Input
Output
Ad slot

About Base64

Base64 represents binary data using 64 printable ASCII characters, growing the size by about 33%. It is used in data URIs, email attachments, JWTs and HTTP Basic auth. This tool encodes text as UTF-8 first, so emoji and non-Latin characters round-trip correctly.

URL-safe variant

Standard Base64 uses + and /, which clash with URLs. The URL-safe alphabet swaps them for - and _ and usually drops the = padding.