How to use Base64 encode and decode
- 01Choose encode or decodeText ⇄ Base64.
- 02Paste the textAny length.
- 03Copy the resultWith its size.

3 bytes become 4 characters.
Base64 writes binary data with 64 safe characters (A–Z, a–z, 0–9, + and /). The text is first turned into UTF-8 bytes, then every 3 bytes (24 bits) become 4 characters of 6 bits each, with = padding at the end when the bytes don’t divide by 3. URL-safe Base64 (RFC 4648) uses - and _ instead of + and /, and the decoder reads both.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
What is “Hello, world!” in Base64?
SGVsbG8sIHdvcmxkIQ==. The 13 bytes make four full groups of 3 and one leftover byte, which is why it ends in ==.
Is Base64 encryption?
No. Anyone can decode it; it only makes data safe to put in email, JSON, URLs or HTML. Never use it to hide passwords.
Why did I get hex instead of text?
The Base64 held bytes that are not UTF-8 text, such as an image or a zip file. They are shown as hex so you can see what is there.
Is what I type sent anywhere?
No. The calculation runs in your browser and nothing you type leaves your device.