Base64 Encode & Decode
Base64 encode and decode text in one place: turn plain text, JSON, or UTF-8 content with emoji into a Base64 string, then paste a Base64 value back to read the original text. Both directions run in your browser, so nothing is uploaded and no account is needed. URL-safe output, padding control, and line wrapping are available when you need a specific format.
Input 0 B · Output 0 B
Input 0 B · Output 0 B
Base64 Encoder
Base64 encode turns text into a plain ASCII string that travels safely through headers, JSON fields, query strings and configuration files. The dedicated page adds URL-safe output, padding control, line wrapping and charset options for non-Latin text.
Open the Base64 EncoderBase64 Decoder
Base64 decode reverses that string and restores the original text, including emoji and non-Latin scripts. The decoder detects common legacy charsets and offers a manual choice when the first reading looks wrong.
Open the Base64 DecoderAll Base64, Base32 & Hash Tools
Fourteen tools cover text, images, documents, Base32 and hashes. Each one runs locally and opens without an account.
Encode & Decode Tools
Image & File Tools
Base32 Tools
Hash Tools
How to Use This Tool
Encode text in 3 steps
Paste or type the text into the encoder box. The Base64 string appears while you type, so there is no submit button. Copy the result or download it as a text file. Switch on URL-safe mode when the value will sit inside a URL.
Decode Base64 back to text
Paste the encoded value into the decoder box. Line breaks are ignored, and the original text returns in the output box. When the payload is an image or a document rather than text, continue with the matching tool from the list above.
Encode and decode images and files
Pictures, PDFs and other files are read as bytes, so they use the media tools instead of the text boxes. Each media page shows a preview before you download the result. The file stays on your device throughout.
What Is Base64
Why Base64 ends with =
The equals sign is padding, not payload. It completes the closing group so a decoder can tell that nothing is missing, and it appears as one or two trailing signs. Many decoders accept a value without padding, but strict systems reject that, so keep the signs when you paste a string into an API or a configuration file. They are part of the format, not a typo.
Is Base64 encryption
No. Base64 has no key and hides nothing. It rewrites bytes in a text-safe form, and anyone who receives the string can turn it back into the original data. Encoded credentials are still readable, so reach for real encryption when data must stay private and for hashing when you need to verify it.
Base64 vs Base64URL
Base64URL uses - and _ in place of + and /, and usually drops the padding, so the value can travel in a URL, a filename or a token segment without escaping. The underlying bytes do not change; only the alphabet and the padding differ. Applying a standard decoder to a URL-safe value fails on those two characters, which is the usual reason a copied token will not open.
Frequently Asked Questions
What is Base64 used for?
It carries binary or non-ASCII data through text-only channels such as JSON, email headers, URLs and configuration files. Typical examples are data URIs for images, attachments in API responses and Basic authentication headers. It is a transport format, not a display format.
Is Base64 encryption?
No. It is a reversible encoding with no key, so anyone can decode a Base64 string. It protects nothing on its own. Use encryption when data must stay private and hashing when you need to verify that content has not changed.
Does Base64 increase file size?
Yes, by about 33%. Three bytes become four characters, so a 1 MB file produces roughly 1.33 MB of text. That overhead is why large images and documents usually stay as separate files instead of being inlined into a page or a JSON field.
Is Base64 URL safe?
Standard Base64 is not URL safe because + and / have meaning in a URL. Base64URL swaps them for - and _ and usually removes padding. Use that variant for query strings, filenames and JWT segments.
What is the difference between Base64 encode and decode?
Encoding turns bytes into a Base64 string; decoding turns the string back into the original bytes. They are exact opposites, so a value encoded once should decode to the text you started with.
Are my files uploaded to a server?
No. Encoding and decoding run in JavaScript in your browser, and files are read locally. Nothing is uploaded, logged or kept after you close the tab, so private documents stay on your device. The page works offline once it has loaded.
Why Base64Box
Runs in your browser
Every tool executes as JavaScript in the tab. A base64 encode or decode happens on your device, so a value can be checked offline once the page has loaded, and no copy is stored on a server.
Free with no signup
There is no account, email address or usage counter. Open a tool, convert the value and copy the result. The site is supported by advertising rather than subscriptions, so the tools stay open to everyone.
Up to 20 MB per file
Media, file and hash tools accept uploads up to 20 MB, while the text decoders accept strings up to 5 MB. The ceiling keeps the tab responsive, because the whole payload is held in memory while it is converted.