# PNG 转 Base64

> 把 PNG 转为 Base64 或 data URI，附 HTML、CSS 和 JSON 代码片段；保留透明度。

首先打开 data URI 标签。每个结果显示长度和是否值得内联（小于 10 KB 是，大于 32 KB 否）；压缩面板可把大 PNG 重新编码为 WebP 或 JPEG。一次最多 20 个文件；Asset Pipeline 可把最多 200 个导出为 ZIP、CSV 或 CSS 样式表。免费，在浏览器中完成。

base64img.com 是独立网站，与 Google、Recraft 或任何模型提供方均无关联。

打开转换工具: https://base64img.com/zh/png-to-base64

## 价格

## Plans (monthly or yearly, cancel any time)

- **Inline: $5.33 a month** — 1,617 credits each month, valid 31 days.
- **Sprite Sheet: $16.73 a month** — 5,742 credits each month, valid 31 days.
- **Asset Pipeline: $35.47 a month** — 12,836 credits each month, valid 31 days.
- **Inline yearly: $53.27 a year** — 1,617 credits each month, valid 31 days.
- **Sprite Sheet yearly: $167.30 a year** — 5,742 credits each month, valid 31 days.
- **Asset Pipeline yearly: $354.70 a year** — 12,836 credits each month, valid 31 days.

Plans differ in how many AI extras can run at once (see the pricing page). Batch AI (up to 50 images in one run) and exports of more than 20 files in one ZIP are on Asset Pipeline only, checked on the server. Converting images to and from Base64 is free on every plan and without an account; it runs in your browser.

## Credit packs (one-time, credits never expire)

- **Byte Crate: $31.63** — 5,936 credits, never expire.
- **Kilobyte Crate: $54.37** — 10,830 credits, never expire.
- **Megabyte Crate: $97.13** — 20,010 credits, never expire.

Free: New accounts get 4 free credits once, after verifying their email address. Enough for one AI alt text (4 credits).

## What a credit buys

| Job | Credits |
| --- | --- |
| Image to Base64, Base64 to image, snippets, SVG mode, shrink | 0 |
| Alt text (Gemini, Google), per image | 4 |
| Background removal (Recraft), per image | 10 |
| Upscale (Recraft Crisp Upscale), per image | 12 |

AI inputs and results are deleted after 24 hours. Failed, timed-out or refused jobs are refunded automatically. Refunds: packs within 14 days of purchase, a plan's first payment within 5 days, while no more than 10% of the purchase's credits are used; the unused part is refunded pro-rata. Renewal charges are not refundable.

---

Source: https://base64img.com/zh/png-to-base64 · Site index for AI agents: https://base64img.com/llms.txt · Full content: https://base64img.com/llms-full.txt
