Base64 Encoder / Decoder

Convert text to Base64 and back. Full UTF-8 support means accents, Urdu, Arabic and emoji work correctly.

🔒 Everything you type stays in your browser. Nothing is sent to a server.

By Shah Rukh, software developer · Last updated:

What is Base64?

Base64 turns any data into text using 64 safe characters: A–Z, a–z, 0–9, + and /, with = for padding. It’s used to put binary data where only text is allowed, such as email attachments, data URLs, JSON web tokens and HTTP Basic authentication.

Base64 makes data about 33% larger, since every 3 bytes become 4 characters.

Base64 is not encryption

Anyone can decode Base64 instantly. Never use it to hide passwords or secrets.

Want to turn an image into Base64? Use the image to Base64 converter.

Frequently asked questions

Why does my decoded text look garbled?

The input may not be text (for example, it’s an image), or it was encoded with a different character set.

What is Base64URL?

A variant that uses - and _ instead of + and /, so it’s safe in URLs. This decoder accepts both.

Is there a size limit?

Only your device’s memory. Several megabytes of text works fine.

Related tools

🔳

QR Code Generator

Free QR codes for links, Wi-Fi, text and contacts.

🎨

Color Picker & Palette

HEX, RGB and HSL codes plus matching palettes.

🌗

Contrast Checker

Check WCAG AA/AAA colour contrast for text.

🔗

URL Encoder / Decoder

Percent-encode or decode URLs and query strings.

🔢

Binary / Hex Converter

Convert between binary, octal, decimal and hex.

🌈

CSS Gradient Generator

Linear, radial and conic gradients with CSS code.

See all Developer Tools →