Base64URL Encode
Produce URL-safe Base64 without padding characters.
Encode text to Base64, or decode it back.
Base64 represents binary data with 64 printable characters, so binary can travel through text-only protocols. Encode: encodes any data into strings of the 64 characters A-Z, a-z, 0-9, + and / Decode: restores the original data from a Base64 string URL-safe mode: replaces + with -, / with _, and drops the = padding
Encodes through UTF-8 first, so Chinese text, emoji and line breaks survive the round trip.
Encode and decode live on the same page and update as you type, with no button to press.
The output is standard Base64 with = padding, not the URL-safe -_ variant; use the Base64URL tool for that alphabet.
Text only: the tool never reads images or files, which have a separate Image to Base64 page.
Invalid Base64 raises an error instead of quietly returning mojibake.
Paste text or Base64
Type text to encode, or paste a standard Base64 string to decode; line breaks in the input are ignored.
Pick the direction
Switch encode/decode at the top; the result updates as you type.
Check the alphabet
If the string contains - or _, it is base64url rather than standard Base64 — decode it with the Base64URL tool first.
Copy the result
One copy button above the output pane; long strings can also be selected manually.
The input is turned into UTF-8 bytes before encoding, and reversed on the way back, rather than processed character by character.
No. It is an encoding anyone can reverse, so do not use it to protect anything sensitive.
The = signs pad the length to a multiple of four. Most systems accept them; base64url payloads such as JWT usually drop the padding and replace + and / with - and _.
No. This page accepts text only; use Image to Base64 for images, or convert the file to text first.
Produce URL-safe Base64 without padding characters.
Encode or decode text using the Base32 alphabet.
Encode or decode numbers and text in Base36.
Encode or decode with Base58, the alphabet Bitcoin addresses use.
Turn text into its 0 and 1 representation.
Turn a binary string back into readable text.