Base64 Encoder
FreePopularEncode text or files to Base64 and back.
Base64 turns binary data into plain ASCII so it can travel through JSON, HTML, emails and data URLs without breaking. Paste text to encode or decode it live, or drop a file to get a Base64 string you can use in a data URL.
How to use Base64 Encoder
- 1Choose Text or File depending on what you are converting.
- 2Paste your text, or drop an image, font or document into the file area.
- 3Toggle URL-safe output if the result will go inside a URL or filename.
- 4Copy the result, or download it as a .txt file.
Base64 Encoder FAQ
Is Base64 encryption?
No. Base64 is a reversible encoding, not encryption — anyone can decode it. Never use it to protect passwords, tokens or personal data.
Why is my Base64 output larger than the input?
Base64 represents every 3 bytes as 4 characters, so the encoded result is about 33% larger than the original data.
What is URL-safe Base64?
Standard Base64 uses + and / which have special meanings in URLs. URL-safe Base64 replaces them with - and _ and drops the = padding so the string can be embedded safely.
Can I decode a Base64 image?
Yes. Switch to Text mode and paste the Base64 payload (with or without a data: prefix). The decoded bytes are shown and you can download them as a file.
Using Base64 Encoder a lot?
Pro removes every ad, raises file limits and adds batch mode plus saved presets across all tools.
Compare plans →