图像转Base64转换器
把本地JPEG/PNG/GIF/WebP/SVG读取为Base64正文或完整Data URL,显示MIME、原始大小与输出长度并支持复制、TXT下载和清空。
JPEG, PNG, GIF, WebP, or SVG up to 10 MB. Processing stays in this browser.
使用步骤
如何使用
- Choose a common image file up to 10 MB.
- Select Base64 body or complete data URL and review the generated output.
- Copy the result, download it as a text file, or clear the page.
A local image encoder
The selected file is read with the browser FileReader API. The image bytes are converted to Base64 on this device; Hello Keyboard Tools does not upload, store, or inspect the image contents.
Keep output limits in mind
JPEG, PNG, GIF, WebP, and SVG files up to 10 MB are accepted. Base64 is about one third larger than the original bytes, so the generated text can be too large for some HTML attributes, CSS declarations, or request headers.
常见问题
你可能还想知道
What is the difference between Base64 and a data URL?
Base64 output contains only the encoded image bytes. A data URL includes the MIME type and the base64 prefix, such as data:image/png;base64, before those bytes.
Which image files are supported?
JPEG, PNG, GIF, WebP, and SVG files up to 10 MB are supported. The browser-reported MIME type must be an image type.
Does my image leave my device?
No. Reading, encoding, copying, and downloading happen locally in your browser. Nothing is sent to Hello Keyboard Tools.