Base64 Encoder
Encode text or files to Base64.
SGVsbG8sIGlaWmkgRGV2VG9vbHMhIOKAlCDQn9GA0LjQstC10YIg8J+Riw==
What is a Base64 Encoder?
Base64 represents arbitrary bytes using 64 printable ASCII characters, so data can travel through channels that only accept text: JSON string fields, data URIs, email attachments, HTTP headers and form values. Three bytes of input become four characters of output, which is why Base64 is roughly a third larger than what it encodes.
Base64 is an encoding, not encryption. Anyone can decode it without a key, so it protects nothing — it only makes binary data safe to transport.
The URL-safe variant swaps the two characters that have meaning inside a URL, + and /, for - and _, and usually drops the = padding. It is what JSON Web Tokens use.
When you need it
- Embedding a small image or font directly in CSS or HTML as a data URI.
- Putting binary data into a JSON field, which can only hold text.
- Constructing an HTTP Basic Authorization header.
- Passing a value through a query string without it being mangled by escaping.
- Storing a small blob in an environment variable or a Kubernetes secret.
How to use the Base64 Encoder
- Type or paste your text into the input panel.
- Tick "URL-safe variant" if the result has to survive being placed in a URL or a JWT.
- The Base64 output appears immediately on the right.
- Copy it, or download it as a text file.
Examples
Base64 Encoder features
Frequently asked questions
Is Base64 a form of encryption?
No. It is a reversible encoding with no key involved — anyone can decode it. Never use it to protect a secret; use it to make bytes transportable as text.
Why is my Base64 longer than the original?
Base64 turns every 3 bytes into 4 characters, so the output is about 33% larger, plus padding. That overhead is the price of being text-safe.
When should I use the URL-safe variant?
Whenever the value goes into a URL path, query string, filename or a JWT segment. Standard Base64 contains + and /, which have their own meaning in those places and would have to be percent-encoded.
What is the = at the end?
Padding, added so the output length is a multiple of four. It carries no data. The URL-safe form usually omits it, and decoders can restore it.
Is my data uploaded to a server?
No. Every iZZi DevTools tool runs inside your browser using the standard web platform. The data you paste is processed on your own machine and is never transmitted, stored or logged by us.
Do I need an account?
No. Every core tool is free, unlimited and works without signing in. An account only adds conveniences such as saved snippets and history.
Does it work offline?
Once the page has loaded, yes. Because the processing happens in the browser rather than on a server, the tool keeps working if your connection drops.