跳到主要内容

File to Base64

Geliştirici

Drop a file and get its Base64 representation, ready to inline in CSS, HTML or JSON.

正在加载工具…

Nasıl kullanılır

3 adım
  1. 01

    点击选择或拖入任意文件

  2. 02

    选择输出纯 Base64 还是 data URI

  3. 03

    复制结果或下载为 .txt

Sık sorulan sorular

3 soru
Q1文件会上传吗?

不会。使用浏览器 FileReader 在本地读取,文件不会离开你的设备。

Q2Base64 为什么比原文件大?

Base64 用 4 个字符表示 3 个字节,体积会膨胀约 33%,这是编码方式决定的,不是出错。

Q3大文件可以转吗?

受浏览器内存限制,建议 20MB 以内。过大的文件会导致页面卡顿。

Geliştirici