Loading...
Please wait while we prepare your experience
Loading...
Please wait while we prepare your experience
Encode text to Base64 or decode a Base64 string back to readable text. Supports UTF-8, Unicode, and emoji. Nothing is sent to any server.
All encoding and decoding happens instantly in your browser — nothing is sent to any server. Supports UTF-8 text including Unicode characters.
Three steps — no setup, no account, works instantly in your browser.
Choose encode or decode
Select Encode to convert plain text to Base64, or Decode to convert a Base64 string back to readable text.
Paste your input
Type or paste the text you want to convert. The tool supports UTF-8 and Unicode characters including emoji and non-Latin scripts.
Copy the result
The output appears instantly. Click the copy button to grab it and use it in your code, email, or wherever you need it.
Embedding images in HTML or CSS
Convert small images to Base64 data URIs to embed them directly in HTML or CSS without a separate file request.
Encoding API credentials
HTTP Basic Auth sends credentials as Base64-encoded username:password. Encode them here before adding to an Authorization header.
Decoding JWT payloads
JWT tokens use Base64url encoding. Decode the middle segment to read the payload claims without a dedicated JWT tool.
Email attachments
MIME email attachments are Base64-encoded. Decode them to inspect the raw content or verify encoding is correct.
Storing binary data in JSON
JSON can't hold raw binary. Base64-encode binary data first so it can be safely stored as a string in a JSON field.
Debugging encoded strings
When you see a long string of letters and numbers ending in == in a log or response, paste it here to see what it actually says.
Found a problem with Base64? Let us know.
Your feedback helps us improve.