Base64 Encode Decode Online Free

Encode text to Base64, decode Base64 to text, convert files to data URIs, and switch between standard Base64 and URL-safe Base64URL - all in your browser, nothing uploaded.

Base64 Encoder / Decoder
Live convert (auto-update as you type)
Text to Encode 0 characters
Standard Base64
Encoded Result
Result will appear here...
0 characters
File to Base64 - Data URI Generator

Drop an image or file to generate its Base64 data URI - perfect for embedding in HTML, CSS, or JSON.

+

Click to select or drag and drop a file here

Supports images (PNG, JPG, SVG, GIF, WebP) and any file up to 10MB

File name:
-
File size:
-
Data URI (first 200 chars):
-
Recent Conversions
No conversions yet. Try encoding or decoding something.
Frequently Asked Questions
What is Base64 encoding used for?
Base64 encoding converts binary data into ASCII text format. It is commonly used for embedding images in HTML/CSS (data URIs), transmitting binary data via email (MIME), storing complex data in JSON/XML, and handling API authentication tokens.
How to decode Base64 to text?
Switch this tool to Decode mode, paste your Base64 string, and click Convert. You can also use Auto Detect mode which automatically figures out whether to encode or decode based on your input.
Is Base64 the same as encryption?
No. Base64 is encoding, not encryption. It can be easily decoded by anyone - there is no secret key involved. Base64 makes data transmittable across text-only channels, but it does not make it secure. Never use Base64 to protect sensitive information.
What is Base64URL?
Base64URL is a URL-safe variant that replaces + with -, / with _, and strips trailing =. It is commonly used in JWT (JSON Web Tokens) and URL parameters where standard Base64 would be invalid.
Is my data safe?
Yes. This tool runs entirely in your browser - zero data is sent to any server. Your text never leaves your computer. You can also save this page and use it offline.
More Free Developer Tools
From the Blog
Copied!