Free Base64 Encoder & Decoder
Encode or decode Base64 for text and files instantly. Everything runs in your browser for speed and privacy.
Encode
Type plain text on the left to generate Base64 on the right.
Large inputs above 5 MB may take longer to process in the browser.
That input is not valid Base64.
File
Drop a file below to convert it to Base64 entirely in your browser.
Large inputs above 5 MB may take longer to process in the browser.
Frequently Asked Questions
What is Base64 used for?
Base64 turns binary data into plain-text characters so it can be transported safely in places like JSON, email, HTML, and API payloads.
Does Base64 encrypt my data?
No. Base64 is only an encoding format, not encryption. Anyone can decode Base64 back to its original content.
What is URL-safe Base64?
URL-safe Base64 replaces plus and slash characters with dash and underscore, and often removes padding, making it safer for URLs and tokens.
Why is Base64 larger than the original file?
Base64 usually increases size by about 33% because it stores every 3 bytes of input as 4 text characters.
Is this Base64 tool private?
Yes. Encoding and decoding happen entirely in your browser. Text and files are not uploaded to any server.