Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to text, with a URL-safe (base64url) option. UTF-8 aware, so emoji and accented characters round-trip perfectly. Runs in your browser.
About Base64
Base64 represents binary or text data using 64 printable ASCII characters, encoding every three bytes as four characters. It is widely used to embed images in CSS, send data in URLs and store small blobs in JSON. Text is treated as UTF-8, so emoji and accented characters round-trip safely.
The URL-safe variant swaps + and / for - and
_ and drops the = padding, so the result is safe to drop into a URL.
Everything is encoded in your browser, nothing is uploaded.
What this does
A Base64 encoder turns text into 64 printable ASCII characters, and decodes it back, with a URL-safe (base64url) option.
How to use it
- Paste text or Base64.
- Choose encode or decode.
- Toggle URL-safe if needed.
- Copy the result.
How it works
Text is encoded as UTF-8 first, so emoji and accented characters round-trip perfectly. URL-safe mode swaps + and / for - and _ and drops the = padding.
Example
“Hi” encodes to “SGk=”, and “SGk=” decodes back to “Hi”.
Sources & methodology
Last updated .
Frequently asked questions
What is Base64 used for?
Base64 turns binary or text data into 64 printable ASCII characters, so it can be embedded in URLs, CSS, JSON or email where raw bytes are not allowed.
What does the URL-safe option do?
It produces base64url: + and / become - and _, and the = padding is dropped, so the result can be placed directly in a URL.
Does it handle emoji and accents?
Yes. Text is encoded as UTF-8 first, so any Unicode character (including emoji) encodes and decodes correctly.
Is my text uploaded?
No. Encoding and decoding happen entirely in your browser; nothing is sent anywhere.
Related tools
URL Encoder & Decoder
Percent-encode text for safe use in URLs or decode it back, with component, full-URI and form (application/x-www-form-urlencoded) modes. Private and instant, all in your browser.
HTML Encoder & Decoder
Convert text to HTML entities or decode entities back to plain text. Handles named entities and numeric (decimal and hex) references. Escape markup safely, all in your browser.
JWT Decoder
Decode a JSON Web Token to read its header and payload, with standard time claims (iat, exp, nbf) shown as readable dates and an expiry check. Decoding only, done privately in your browser.
Text Encrypt & Decrypt
Encrypt a message with a password using AES-GCM and PBKDF2, then share the Base64 result. Decrypt it back with the same password. Strong, authenticated, and entirely in your browser.