Skip to content

Encoding converters

Text to Base64

Convert text to Base64 online: choose UTF-8 or 91 charsets including legacy DOS, EBCDIC and CJK pages, URL-safe output, line wrapping and per-line mode. Free, private, instant.

100% private · everything runs in your browser

Type or paste text and watch Base64 appear live. Pick from 91 character sets — UTF-8 for the web, ISO-8859-1 for legacy systems, KOI8-R for Cyrillic, Shift-JIS for Japanese — with an explicit warning whenever a character cannot be represented in your chosen set.

Input
Options

How to use

Text to Base64, step by step

  1. 01

    Type or paste your text — the Base64 appears live as you type, with character and byte counts updating in the header.

  2. 02

    Pick the charset your target system expects. UTF-8 is the safe default; legacy systems often need ISO-8859-1 or a Windows code page instead.

  3. 03

    Copy the Base64 with one click or download it as a .b64 text file.

FAQ

Frequently asked questions

Almost always the charset. The same “é” is one byte in ISO-8859-1 and two in UTF-8, producing different Base64. This tool makes the choice explicit and warns you the moment a character cannot be represented in the selected set — most sites just silently pick UTF-8.

The character you typed does not exist in the selected charset — an emoji in ISO-8859-1, for example. The encoder substitutes “?” and counts every substitution so you know exactly how much would be lost. Switch to UTF-8 (or a broader set) to keep everything.

Base64 packs 3 bytes into 4 characters — a fixed 33% overhead on top of whatever the charset encoding itself uses. “Hello” (5 bytes) becomes 8 characters; a 4-byte emoji becomes 8 bytes in UTF-8 and 12 characters in Base64.

Those options live on the full Base64 Encoder workbench, together with per-line encoding and case transforms. This page is the fast path: text in, Base64 out, charset under your control.

Your text is encoded exactly as typed — LF stays LF. If you need CRLF for a Windows protocol, convert the line endings first; the encoder deliberately does not rewrite your content.

No. Encoding happens in your browser — nothing is transmitted, logged or stored. That is the point of doing it client-side: tokens, credentials and private text stay on your machine.

Related tools

esc

Tools

Pages

↑↓ navigate↵ open⌘K

Keyboard shortcuts

Same shortcuts everywhere — ⌘ on macOS, Ctrl on Windows and Linux.