Encode text or files into Base64 format, or decode Base64 back into text. Features live image previews for data URIs.
Click or drag & drop a file here
Convert an image or file to a Base64 Data URI
To encode text, type or paste your string into the "Input String" box and click "Encode String".
To encode a file (like an image) into a Base64 Data URI, simply drag and drop the file into the dashed dropzone area, or click the area to select a file from your computer.
To decode a Base64 string back into text, paste the Base64 data into the input box and click "Decode Base64".
If your Base64 string is an image Data URI (e.g. data:image/png;base64,...), a live image preview will automatically appear in the output box.
Click the Copy button to copy your encoded or decoded result to the clipboard.
Base64 is a widely-used encoding scheme in web development that converts binary data (like images or files) into an ASCII string format. This is particularly useful when you need to embed image data directly into CSS or HTML files (using Data URIs) to reduce HTTP requests, or when transmitting binary data over text-based protocols like JSON. Our Base64 Encoder supports both standard string encoding/decoding and direct file uploads, providing you with the exact Base64 string you need instantly in your browser.