Free隐私优先 · 本地处理 · 无需账户

面向开发者的Base64工具
在浏览器中编码、解码和转换Base64。数据不离开您的设备——无上传、无追踪。

在浏览器中编码、解码和转换Base64。数据不离开您的设备——无上传、无追踪。

零服务器请求40+工具开源
base64_encodeLIVE
100% Client-side
atob() · btoa() · FileReader
零服务器请求
40+工具
40+工具
Encode · decode · convert
开源
MIT · GitHub
01ALL TOOLS

Base64所需的一切

编码器、解码器、转换器、验证器 — 覆盖所有工作流程。

Image → Base64

Drag-and-drop any image. Get a data URI ready to paste into HTML, CSS, or JSON.

data:image/png;base64,iVBORw0KGgoAAAA…
Encoder
B64

Base64 → Image

Paste any Base64 string. Preview and download the decoded image instantly.

iVBORw0KGgoAAAA…image.png
Decoder

Text → Base64

Encode any UTF-8 text. Standard or URL-safe.

Encoder

File → Base64

Any file type — PDF, ZIP, font, binary.

Encoder

Base64 → Text

Decode JWT tokens, API headers, config values.

Decoder

Base64 → File

Recover original files from Base64 strings.

Decoder

Base64 → PNG

Decode and export as lossless PNG.

Converter

Base64 → JPEG

Convert with adjustable quality.

Converter

Base64 → WebP

Modern format, smaller file sizes.

Converter

Validator

Check if a string is valid Base64.

Utility

Size Calculator

Calculate encoded output size before embedding.

Utility

Embed Generator

Get HTML/CSS embed code in one click.

Utility

What is Base64?

Complete guide to Base64 encoding and RFC 4648.

Reference
02HOW IT WORKS

零服务器接触。设计如此。

每项操作都在浏览器原生API上运行。您的数据永不离开标签页。

01

您提供输入

拖放文件、粘贴字符串或上传图片。数据保持本地。

const file = input.files[0];
02

浏览器API编码

FileReader、atob/btoa和Canvas处理编码 — 内置于每个浏览器。

const b64 = btoa(binary);
03

输出属于您

复制字符串,下载文件。零网络请求。

// no uploads. ever.
03FAQ

常见问题

我的数据真的私密吗?
是的。使用任何工具时打开DevTools → 网络 — 您将看到零POST请求。所有操作使用FileReader、atob()/btoa()和Canvas — 从不访问网络的浏览器API。
什么是Base64编码?
Base64使用64个可打印ASCII字符将二进制数据转换为文本。用于在HTML/CSS中嵌入图片,在JSON API中传输文件。编码增加约33%的大小。完整指南
如何在CSS中嵌入图片?
使用图片编码器编码您的图片,然后使用:background-image: url('data:image/png;base64,…')
标准Base64 vs URL安全Base64?
标准Base64使用+/,在URL中会出问题。URL安全版本(RFC 4648 §5)将它们替换为-_