Base64 encoder and decoder

Encode and decode Base64 text and files with URL-safe mode and file details

Base64 encoding
Encoded text will appear here
Convert text to Base64 for transport and storage
Base64 decoding
Decoded text will appear here
Convert Base64 back to the original text
Drop a file here or select one

Images, documents, audio and other files

File name:
File size:
File type:
The encoded file will appear here
Results
0 items

Batch results will appear here

Features
  • Base64 encoding/decoding
  • URL-safe Base64
  • File-to-Base64 encoding
  • Show the browser-reported file type
  • Batch processing
  • Live encoding/decoding
  • Copy results in one click
  • Load sample data
Examples
Simple text

Base64 of plain text

Text:Hello World!
Base64:SGVsbG8gV29ybGQh
JSON data

Base64 of a JSON string

Text:{"name": "test", "value": 123}
Base64:eyJuYW1lIjogInRlc3QiLCAidmFsdWUiOiAxMjN9
URL-safe encoding

URL-safe mode replaces / with _

Text:???
Base64:Pz8/
Chinese characters

Base64 of Chinese text

Text:你好,世界!
Base64:5L2g5aW977yM5LiW55WM77yB
Tips
Note:Base64 adds about 33% to data size. Use dedicated tools for large files.