Base64 Encode & Decode Files Free Online — Images, PDFs, Any File
What Is Base64 and Why Do You Need It?
Base64 is a text encoding of binary data. Email attachments, CSS background-image data URIs, JWT payloads, and API binary fields all use Base64. If you have a logo PNG you want to embed directly in a CSS file (no separate HTTP request), or an image you want to include in a JSON API payload, you need the Base64-encoded string.
Encode a File to Base64
Drag any file (image, PDF, font, binary) into the encoder. The Base64 string appears instantly. For images, you also get a ready-to-use data URI (data:image/png;base64,...) that you can paste directly into HTML src attributes or CSS background-image.
Decode Base64 Back to a File
Paste a Base64 string (or data URI) into the decoder. Click Decode. The original file downloads. This is useful for extracting images embedded in HTML source code, decoding API responses that return Base64-encoded binary content, or debugging JWT tokens that contain Base64-encoded claims.
Frequently Asked Questions
Base64 encode files free
Convert any file to Base64 or decode Base64 back to file — browser-based.
Open Base64 Tool