Base64 Encode/Decode Image support
Encode and decode text to Base64. For API integration and data transfer.
▶About this tool
This tool encodes and decodes text to Base64 in one click. Three features: 1) Toggle encode/decode with one click, 2) Supports Unicode (UTF-8) including Japanese, 3) All processing in browser—no data sent to server. Ideal for Basic auth headers and Data URI generation.
Tool interface
Usage
- Enter text in the input field
- Click Encode for Base64 or Decode to restore
- Supports Unicode including Japanese
When to use
Basic auth headers, Data URIs (image embedding), API payload transfer, binary as text.
Examples
Hello → SGVsbG8=, embed image as Data URI in HTML.Tips
- Basic auth:
Authorization: Basic+ Base64(user:pass). - Data URI:
data:image/png;base64,+ Base64(image). - All processing is local. No data sent to server.
FAQ
What is Base64?
Encoding that represents binary as 64 ASCII chars (A-Z, a-z, 0-9, +, /). Lets you handle images/files as text for email, Data URIs, etc.
Can Base64 handle Japanese?
Yes. Encode to UTF-8 first, then Base64. This tool supports Unicode including Japanese.
What is Data URI?
Format to embed images in HTML/CSS with data: scheme. data:image/png;base64, followed by Base64 string. No external file, but not cached.
Benefits of Base64 encoding?
Binary as text for JSON/API transfer, safe in email, can be URL-safe. Good for small images and auth headers.
Invalid character in base64 string error
Input contains invalid chars (spaces, newlines, or prefixes like data:image/png;base64,). Use only Base64 chars (A-Za-z0-9+/=). For Data URI, paste only the part after the comma.
Failed to execute 'atob' error
atob is the browser API for Base64 decode. Invalid Base64 input causes this. Remove extra characters and retry.
Related tools
Encode & Convert Set