Base64 Tool
Encode text to base64 or decode base64 back to text.
Or encode a file directly to Base64:
Three steps to done
Drag and drop or click to browse
Runs in your browser, nothing uploaded
Get your file instantly
When to use this
Decode auth tokens
Decode base64-encoded JWT payloads for debugging.
Encode API keys
Encode strings for APIs that expect base64 input.
Convert data
Quick encode/decode for development and testing.
Free Base64 encoder and decoder
Type or paste text on the left to encode it, or paste a Base64 string on the right to decode it. You can also upload a file to get its Base64 representation.
Everything runs in your browser using the native btoa and atob APIs for text and the FileReader API for files. Nothing is uploaded or stored.
Base64 is widely used in web development for data URIs, API payloads, email encoding, and storing binary data in text-based formats like JSON and XML.
Frequently Asked Questions
Related tools
All toolsMerge PDFs
Combine multiple PDF files into one. Drag to reorder. No uploads needed.
Image to PDF
Convert JPG, PNG, and WEBP images into a single PDF. Drag to reorder pages.
Rotate PDF
Rotate PDF pages by 90, 180, or 270 degrees. All pages or individual pages.
Split PDF
Extract specific pages from a PDF. Enter page ranges to create a new file.
3 free uses left today
Unlimited with Pro