← 返回工具首页 | Olutil Image Tools
🌐 简体中文

图片转 Base64 转换器

拖入图片立即获取其 Base64 data URI。适合将小图直接嵌入 HTML、CSS、JSON 或 Markdown——无需单独 HTTP 请求。 100% 本地处理

📁
Click / drop / paste (Ctrl+V)
JPG · PNG · WebP · GIF

使用方法

  1. 载入图片 — 点击拖拽区浏览、拖入文件,或复制图片后按 Ctrl/⌘+V
  2. 选择输出格式 — 保持"完整 data URI"勾选以直接嵌入 HTML/CSS,或勾选"仅原始 Base64"获取纯字符串。
  3. 复制结果 — 用复制 Base64,或选择 <img> / url() 包装按钮获取可直接粘贴的片段。

支持的输入格式

JPG, PNG, WebP, GIF, BMP and any other format your browser can decode. The MIME type in the data URI is detected automatically from the file.

功能特性

相关工具