Skip to main content
ToolyDay

Base64 Encode & Decode

Convert text or a file to Base64, or decode Base64 back to text, with an optional URL-safe format.

Your files never leave your device

Choose Encode or Decode, type or paste your text (or choose a file to encode), and copy the result.

About this tool

Base64 Encode & Decode converts text or a small file into Base64, and turns Base64 back into text. An optional URL-safe format is included. It runs in your browser, so your data is never uploaded, and it is free with no sign-up.

Good to know: Base64 is an encoding, not encryption: anyone can decode it. Files up to 5 MB.

Your files are processed entirely in your browser — nothing is ever uploaded to any server. Verify it yourself

Frequently asked questions

Is Base64 a form of encryption?
No. Base64 only changes how data is written so it can travel as plain text. Anyone can decode it, so never use it to hide passwords or secrets.
What is the URL-safe format?
It uses "-" and "_" instead of "+" and "/", and leaves out the "=" padding, so the result can be placed in a web address or a file name without extra encoding.
Why does decoding sometimes fail?
The text may contain characters that are not part of Base64, or it may be cut off. If the decoded data is not text (for example an image), the tool tells you.