File to Base64
Lập trìnhDrop a file and get its Base64 representation, ready to inline in CSS, HTML or JSON.
正在加载工具…
Cách dùng
3 bước- 01
点击选择或拖入任意文件
- 02
选择输出纯 Base64 还是 data URI
- 03
复制结果或下载为 .txt
Câu hỏi thường gặp
3 câu hỏi
Q1文件会上传吗?
不会。使用浏览器 FileReader 在本地读取,文件不会离开你的设备。
Q2Base64 为什么比原文件大?
Base64 用 4 个字符表示 3 个字节,体积会膨胀约 33%,这是编码方式决定的,不是出错。
Q3大文件可以转吗?
受浏览器内存限制,建议 20MB 以内。过大的文件会导致页面卡顿。