Encode text or files to Base64 and decode Base64 strings back. Supports images, files, and Unicode text.
Encode / Decode
Input Text (supports Unicode, HTML, JSON)
Base64 Output
Base64 Input
Invalid Base64 string — check for extra characters or padding
Decoded Text
Click to upload any file for Base64 encoding
Max 5MB
Base64 Output
Paste Base64 Image String (with or without data: prefix)
Not a valid Base64 image
Image Preview
What is Base64? Base64 is an encoding scheme that converts binary data into text format using 64 characters (A-Z, a-z, 0-9, +, /). It's commonly used for embedding images in HTML/CSS, API authentication tokens, and email attachments.