关于 Base64 图片
图片与 Data URL 双向转换
Data URLs are convenient for small previews, test fixtures, and API payloads, but they make documents larger than the original binary file. Use this tool to inspect the exact media type and payload before embedding it in HTML, CSS, or a request.
如何使用这个开发者工具
- Choose image-to-Base64 or Base64-to-image mode.
- Upload an image or paste a Data URL/Base64 value and review the detected media type.
- Convert the value, inspect the preview, then copy the text or download the decoded image.
隐私与数据处理
Image bytes are processed in the current browser. They are not intentionally uploaded to Dev Tools; clear the page when working on private images and avoid sharing a generated Data URL that contains sensitive content.
相关开发者工具
常见问题
Is a Data URL the same as Base64?
No. A Data URL includes a media type and a Base64 payload, while a raw Base64 value contains only the encoded bytes.
Does Base64 make an image smaller?
Usually not. Base64 adds overhead, so it is best for small inline assets and transport formats rather than general file compression.
Can this tool change the image format?
It preserves the detected image bytes when decoding. Use an image editor or an image conversion tool when you need a different format.