PrivTab

Base64 编码

进行 Base64 编码

在浏览器中运行 · 无需上传

此工具及本页说明目前仍为英文。功能完全相同:一切都在你的浏览器中运行。

Direction
  • 任何内容都不会离开你的设备
  • 服务器不限制文件大小
  • 无需注册,无水印
  • 免费

How to encode Base64

  1. Type or paste text, or choose "Encode a file…".
  2. Pick URL-safe Base64, line breaks or a data: URL if you need them.
  3. Copy or download the result.

Good to know

  • Text is encoded as UTF-8, so accents, other scripts and emoji come back exactly.
  • URL-safe Base64 uses - and _ instead of + and / and drops the = padding, as JWTs and many URLs do.
  • Base64 is about a third larger than the original data. It is an encoding, not encryption: anyone can decode it.

常见问题

Can I encode images?

Yes, any file. For images, Image to Base64 also gives ready-made HTML and CSS snippets.

Is my text or file uploaded?

No. Everything happens in your browser, and the page is blocked from uploading anything.