My Favorites

No favorites yet. Click the bookmark button on a tool page to add favorites.

Base64 Encode/Decode - Free Online | FunToolX

Use Base64 Encode/Decode online for free, no download required. FunToolX offers hundreds of fun online tools.

Input
Output

About this tool

Base64 Encode/Decode is a free online converter. Base64 encode and decode tool. Convert files and values in just a few seconds. It runs entirely in your browser — no download or sign-up needed.

Enter text or upload a file, and the tool encodes it into a Base64 string. You can also paste the Base64 string and decode it into the original content. Support UTF-8 encoding, processing Chinese will not be garbled. After the file is uploaded, a Data URL (data:image/png;base64,...) will be generated, You can directly embed img tags or CSS in HTML.

Base64 encoding converts every 3 bytes of data into 4 ASCII characters, using a total of 64 characters A-Z, a-z, 0-9,+, and/. The volume will increase by approximately 33% after encoding. The browser uses the btoa/atob function or the FileReader API to implement the conversion.

It is suitable for embedding small pictures in CSS or HTML to reduce HTTP requests, or transmitting binary data in JSON. It is also used to decode message attachments or data URIs.

Base64 encoding and decoding tool supports Base64 conversion of text, files, and pictures, and can generate Data URLs for embedding into web pages.