Encode text to Base64 or decode Base64 to text, with UTF-8 and URL-safe options.
Base64 represents binary data using 64 printable characters (A–Z, a–z, 0–9, + and /). “Hello, World!” encodes to SGVsbG8sIFdvcmxkIQ==. The output is about 33% larger than the input, and it is encoding, not encryption.
Base64 converts data into plain text that can be safely placed in emails, JSON, HTML, URLs and configuration files. This tool encodes text to Base64 and decodes it back, handling UTF-8 correctly so Hindi, accented letters and emoji round-trip properly. A URL-safe option replaces + and / with - and _ and drops the padding.
Developers use Base64 for data URIs, basic-auth headers, JWT segments and embedding small files. Base64 is not encryption — anyone can decode it, so never use it to protect secrets. For percent-encoding of URLs see the URL Encode / Decode.
Every three bytes of input become four Base64 characters.
| Text | Base64 |
|---|---|
| Hello, World! | SGVsbG8sIFdvcmxkIQ== |
| a | YQ== |
| ab | YWI= |
| abc | YWJj |
| Websolindia | V2Vic29saW5kaWE= |
A way of writing binary data using 64 printable characters so it can be carried in text-only formats.
Choose Encode, type or paste your text and the Base64 appears immediately.
Choose Decode and paste the Base64 string. Spaces and line breaks are ignored.
No. It is a reversible encoding with no key, so anyone can decode it.
Padding. Input that is not a multiple of three bytes is padded with one or two = signs.
A variant using - and _ instead of + and / (and usually no padding), so it can sit in URLs and filenames.
Yes. Text is converted with UTF-8 first, so every character round-trips correctly.
The Base64 may hold binary data such as an image or file rather than UTF-8 text.
About 33% larger than the original.
No. Everything is processed in your browser and nothing is uploaded.