Base64 Encoder Tool
Convert text or files to Base64 format. Generate Data URIs and decode Base64 strings.
How to Use
Select Text or File
Enter text or drag & drop a file.
Encode or Decode
Click "Encode" to convert to Base64, or "Decode" to revert.
Copy Result
Copy to clipboard with the copy button.
About Base64
Base64 is an encoding scheme that represents binary data in text format. It is used for email attachments, Data URIs, and binary data transmission in APIs.
Features
- Text & File SupportConvert not only text but also images and PDFs to Base64.
- Data URI GenerationOutput images as Data URIs for direct embedding in HTML or CSS.
- URL Safe OptionGenerate URL-safe Base64 by replacing + and / with - and _.
- Privacy ProtectedAll processing happens in your browser. Files are never sent to servers.
Use Cases
- Embed images directly in HTML (Data URI)
- Send binary data via APIs
- Encode email attachments
- Decode JWT tokens for inspection
- Embed images in CSS
Related Tools & Guides
Base64 shows up everywhere in web development. To turn images into Data URIs, try the Image to Base64 tool. For converting between hexadecimal and text, use the Hex Text Converter, and to handle URL parameters safely see the URL Encoder. If you want to understand how Base64 works and why it is used, read our guide 'What is Base64?'.
FAQ
Is the Base64 converter free?
What file size can it handle?
Does Base64 increase file size?
Are my files safe?
What is a Data URI?
What is URL-safe Base64?
Can it handle line breaks and emoji correctly?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.