Base64 Encoder
Encode text to Base64 as you type, including emoji and non-English characters, with an option for URL-safe output.
Text
Base64
Encoded and decoded in this browser tab. Nothing is uploaded.
How to use the Base64 Encoder
- Type or paste text, or open a file to encode its bytes.
- Turn on URL-safe for tokens and URLs, or wrap lines at 76 characters for email (MIME).
- Copy or download the Base64 output.
Example
Input
Hello, wörld 👋Result
SGVsbG8sIHfDtnJsZCDwn5GLWhat it does
- UTF-8 correct
- Text is encoded as UTF-8 bytes first, so accents and emoji work. The browser’s btoa() alone fails on them.
- URL-safe option
- Base64url replaces + and / with - and _ and drops padding, as used by JWTs.
- Files too
- Open any file to get its Base64, for example to embed a small image or font as a data URL.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding that anyone can reverse. Do not use it to protect passwords or secrets.
Why is the output longer than my text?
Base64 uses 4 characters for every 3 bytes, so output is about 33% larger than the input.
Is my data sent to a server?
No. The conversion runs in your browser, and nothing you paste is uploaded, logged or stored.