Base64 Encoder / Decoder
Encode plain text or files to Base64 and decode them back.
Plain text
0 bytes
Base64 output
0 bytes
Encode text or files to Base64 and decode Base64 back to readable text. Supports standard and URL-safe Base64, plus file-to-Data-URI conversion.
Key Features
Text Encoding
Encode any Unicode text to Base64 with proper UTF-8 handling, or decode Base64 back to text.
URL-Safe Mode
Replaces + with -, / with _ and removes = padding for use in URLs and JWT tokens.
File to Data URI
Drop any file to generate a Base64 Data URI with MIME type — ideal for embedding images in CSS or HTML.
Swap Inputs
Quickly swap input and output for round-trip encoding and decoding.
How to Use
- 1Choose Text Mode or File Mode.
- 2Select Encode or Decode direction.
- 3Type or paste your input and the result appears instantly.
- 4Toggle URL-Safe if you need web-safe Base64.