Data tool
Base64 Decode and Encode
Decode Base64 back into readable text or a file, or encode text and files to Base64.
Runs entirely in your browser. Nothing you paste is uploaded.
How to use the Base64 Encoder / Decoder
- Choose Encode or Decode.
- Type or paste into the left box, or pick a file to encode. The result appears as you type.
- Copy the result. When decoded data is a file rather than text, use Download file to save it.
What Base64 is and when to use it
Base64 decode turns a Base64 string back into the original text or file, and Base64 encode does the reverse. This online Base64 converter handles both directions, including Base64 to image, without sending anything to a server.
Base64 represents binary data using 64 printable characters so it can travel through systems that only handle text, such as JSON fields, email, and data: URIs in HTML and CSS. It is an encoding, not encryption: anyone can decode it.
This tool encodes text as UTF-8 first, so emoji and non-English characters survive the round trip. The URL-safe option swaps + and / for - and _, the variant used in JWTs and query strings.
When decoding, whitespace and line breaks are ignored, URL-safe input is accepted, and a leading data:image/png;base64, prefix is recognised so images can be saved straight to a file.
Common questions
How do I decode Base64 online?
Paste the Base64 string and choose Decode. Text appears straight away, and when the data is a file or an image you can download it.
Is Base64 a way to secure data?
No. It only changes how data is written. Anyone can decode it, so never use it to hide passwords or secrets.
Why is the Base64 version larger than the original?
Every 3 bytes become 4 characters, so encoded data is about 33% bigger than the source.
Can I decode an image?
Yes. Paste the Base64 or the full data URI, then use Download file. The tool detects that the result is binary rather than text.
Are my files uploaded?
No. Files are read and encoded inside your browser and never sent anywhere.
Guides for the Base64 Encoder / Decoder
- Base64 Encoding Explained: What It Is and When to Use ItBase64 turns binary data into text so it can travel through text-only systems. How it works, why it adds 33 percent, and when not to use it.
- Data URIs and Base64 Images: When to Inline and When Not ToData URIs and Base64 images explained: how inlining works, the 33 percent size cost, caching trade-offs, and clear rules for when to inline an image.
- What Is a JWT? JSON Web Tokens Explained SimplyWhat a JWT is and how it works: the header, payload and signature, how to decode one, what it does and does not protect, and common security mistakes.
- URL Encoding Explained: Percent-Encoding, %20 and Query StringsURL encoding replaces unsafe characters with percent codes such as %20. Learn which characters need it, %20 versus +, and how to avoid double encoding.