Base64 Encode & Decode
Checked and verified · August 15, 2026
Convert text or a file to Base64, or decode a Base64 string back to text or a downloadable file — all in your browser. Runs entirely in your browser — nothing is uploaded.
Direction
Input
Click to choose a file or drag one here
Any file type
Result
For any feedback, bug report and request:
Contact UsHow it works
- Choose Encode or Decode, and Text or File as your input.
- For text, paste it directly; for a file, drop it in or click to choose one.
- The result appears instantly — copy it, or download it as a file for encode-to-file or decode-to-file.
- URL-safe encoding (using - and _ instead of + and /) is available as an option for using the result in a URL or filename.
Frequently asked questions
Does this upload my file or text anywhere?
No — encoding and decoding both happen locally in your browser using the standard Base64 APIs. Nothing is sent to a server.
What's the difference between standard and URL-safe Base64?
Standard Base64 uses + and / characters, which have special meaning inside a URL. URL-safe Base64 replaces those with - and _ so the result can be used directly in a URL or filename without extra encoding.
Can I decode a Base64 string back into a downloadable file?
Yes — decode mode with File output rebuilds the original bytes and offers it as a download. You'll need to know (or guess) the original file extension, since Base64 alone doesn't store a filename.
Is there a file size limit?
No hard limit, though very large files (100MB+) will take longer and use more memory since encoding happens in your browser's memory.
What happens if I try to decode invalid Base64?
You'll get a clear error rather than garbled output — the tool validates the input is well-formed Base64 before attempting to decode it.
Your files are never uploaded. Gotool.xyz runs entirely as JavaScript in your browser. Your files are processed in memory and never touch a server — nothing to breach, nothing to clean up. Close the tab and it's like it never happened. The only thing we count is which tool ran (just the name, e.g. "merge") so we know what people find useful — never your file, its name, its size, or anything in it.