Base64 Encoder/Decoder
Convert text or images to Base64 and vice versa, 100% client-side with preview.
Encode and decode text or images to Base64 in the browser. Features UTF-8 safe conversion for strings, and supports uploading local files to output Base64 DataURLs or decoding Base64 back into downloadable files.
How to use
- 1Text Mode: Type text in the input box to auto-generate Base64, or paste Base64 on the right and click decode
- 2File Mode: Drag or click to upload any file/image. The tool outputs its Base64 DataURL for easy copying
- 3File Decode: Paste a Base64 string into the panel. The tool previews it (if an image) and lets you download it as a binary file
正在载入 Base64 编解码引擎...
FAQ
- Does image-to-Base64 include a data URI prefix?
- Choose raw Base64 or a full Data URL such as `data:image/png;base64,...` for direct use in HTML or CSS.
- Why does Base64 decoding fail?
- Common causes are stray whitespace, missing `=` padding, or pasting URL-safe variants (-/_) as standard Base64.
- Can I preview decoded binary data?
- Image payloads preview in the page; other content downloads as a file for your local apps to open.
