Base64 Encoder/Decoder
Encode text or files to Base64 and decode it back to text or files, including URL-safe Base64.
Base64 Encoder/Decoder FAQ
How do I decode a Base64 string?
Click Decode and paste the string. The decoded text appears at once. If the Base64 holds a file such as a PNG or PDF, the tool names the file type and shows a Download button instead.
How do I convert a file to Base64?
Stay on Encode and drop the file on "Or encode a file", or click it to browse. Any file type up to 20 MB works. Turn on data: URI if you want to paste the result into an img src or a CSS url().
What is URL-safe Base64?
It is Base64 with - and _ in place of + and /, usually without the = padding, so it can sit in a URL or a JWT unchanged. This tool reads both kinds automatically when decoding.
Why does my decoded text look garbled?
Because the data is a file, not text. This tool checks whether the bytes are valid UTF-8 text; if not, it offers the file as a download with the right extension instead of showing garbled characters.
Is Base64 encryption?
No. Base64 only changes how data is written so it can travel as text. Anyone can decode it, so never use it to hide passwords or personal data.
Are my text and files uploaded?
No. Encoding and decoding happen in your browser and nothing is sent to a server. You can disconnect from the internet after the page loads and it still works.