Base64 Encoder
Convert any text, including emoji and accented characters, into a Base64 string in one click.
Processed locally in your browser· Your data stays in your browser.
What is Base64 Encoder?
Base64 represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It is used wherever bytes must travel through systems that only handle text: email attachments, JSON payloads, data URLs and HTTP Basic authentication headers.
This encoder first converts your text to UTF-8 bytes, so non-Latin characters and emoji are encoded correctly, then maps every 3 bytes to 4 Base64 characters.
How does it work?
- Type or paste your text in the input box; the Base64 result appears instantly.
- Choose line breaks (none, 76 characters for MIME, 64 for PEM) and whether to keep the "=" padding.
- Copy the result or download it as a text file. Use Swap to decode a Base64 string right away.
Common use cases
- Embedding a small text or JSON snippet in a URL, cookie or config value.
- Building an HTTP Basic Authorization header from "user:password" test credentials.
- Preparing MIME-style Base64 blocks for email or PEM-like files.
- Checking what a Base64 value in a log or API response should look like.
Examples
Try this input in the tool above:
Hello world
SGVsbG8gd29ybGQ=
Privacy
Base64 Encoder runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
Base64 is an encoding, not encryption: anyone can decode it. It also makes data about 33% larger. For files, use the Base64 File Encoder.
Frequently asked questions
Is Base64 a form of encryption?
No. Base64 only changes the representation of data and offers no secrecy. Never rely on it to protect passwords or tokens.
Why does my result end with "=" characters?
The "=" characters are padding that make the output length a multiple of 4. You can turn padding off, but some decoders require it.
Are emoji and accented letters supported?
Yes. Text is converted to UTF-8 before encoding, so characters such as é, ç, 你 or 😀 round-trip correctly.
Related tools
Base64 Decoder
Paste a Base64 string and read the original text instantly, even when the padding is missing.
Encoding & Decoding
Base64URL Encoder
Turn any text into a Base64URL string that can be pasted straight into a URL, a filename or a JWT segment.
Encoding & Decoding
File to Base64 Converter
Drop a file and get its Base64 string or a data: URL you can paste into HTML, CSS, JSON or an API request.
File Tools
URL Encoder
Make any text safe for a URL: spaces, accents, ampersands and emoji become %XX sequences.
Encoding & Decoding
Text to Hex Converter
See the exact bytes behind any text, from a quick "Hello" to emoji, formatted the way your code or debugger expects.
Encoding & Decoding
Text to Binary Converter
Turn words into ones and zeros: each byte of your text is shown as eight bits.
Encoding & Decoding