comment wrappers around each block
═══════════════════════════════════════════════════════════ -->
Encode text or files to Base64, or decode Base64 strings back to data. URL-safe mode supported. Browser-based. Base64 is an encoding scheme that represents binary data using only 64 ASCII characters. It's widely used to embed binary data (images, files) in text-based formats like HTML, CSS, and JSON. Yes — all encoding and decoding runs locally in your browser. No data is sent anywhere. For file encoding, use our dedicated Image to Base64 tool which handles images directly. Paste text and click Encode to get Base64, or paste Base64 and click Decode to get plain text. Also supports file-to-Base64 conversion for images and documents. Base64 encoding is used in email attachments (MIME), embedding images in HTML/CSS, storing binary data in JSON APIs, and passing data through text-only channels. Encode any text or binary data to Base64 format, or decode a Base64 string back to readable text. Used in web development for data URIs, API authentication headers, JWT tokens, email attachments (MIME), and more. Supports standard and URL-safe Base64. Base64 encoding/decoding uses browser-native btoa()/atob() functions. Text and data stay in your browser. Choose Encode (text → Base64) or Decode (Base64 → text). Paste your text or Base64 string. Click Encode or Decode — result appears instantly. Click to copy the result to clipboard. Embedding images in HTML/CSS, HTTP Basic Authentication, JWT tokens, email MIME encoding, and API data transmission. No — Base64 is encoding, not encryption. Anyone can decode Base64. Use proper encryption for sensitive data. Standard Base64 uses + and / which break URLs. URL-safe mode replaces them with - and _. Yes — JWT tokens are Base64 encoded. Paste the payload section to see the claims. No hard limit, but very large inputs may slow down the browser.Base64 Encoder / Decoder — Free & Instant
FAQ
What is Base64?
Is my data private?
Can I encode files?
Encode & Decode Base64 Text
Common Use Cases
About Base64 Encoder / Decoder
How to Use — Step by Step
Select Mode
Enter Data
Convert
Copy
Frequently Asked Questions
What is Base64 used for?
Does Base64 encrypt data?
What is URL-safe Base64?
Can I decode a JWT token here?
Is there a size limit?