Base64 文本编码与解码

在文本与 Base64 之间转换,支持 URL 安全输出。

在您的浏览器中运行。您的文件不会离开设备。 了解如何验证

…

使用方法

  1. 1
    选择设置

    填写信息或选择您需要的选项。

  2. 2
    查看结果

    更改任何内容时,预览会立即更新。

  3. 3
    下载或保存

    将结果保存到您的设备。不会向服务器发送或保存任何内容。

About this tool

Encode any text to Base64 or decode Base64 back to text. UTF-8 is supported, so Bangla and emoji work. Choose URL-safe output for tokens and links. It is done in your browser.

When to use it

Convert text to Base64 and back, with URL-safe output, for tokens, data URLs and email attachments.

Tips

Base64 is encoding, not encryption. Do not use it to hide secrets.

Privacy

Everything runs in your browser, so your data is not uploaded or stored.

获得最佳结果的提示

开始之前请花一点时间阅读选项,并先用一个小例子试用工具。一切都在您设备的浏览器中运行;您输入或添加的任何内容都不会被上传,关闭标签页会清除所有内容。如果看起来不对,请刷新页面重试,或使用本页的报告链接告诉我们出了什么问题。如果结果仍然看起来不对,请每次只更改一个值,看看哪个输入影响最大。如果您还会再用,请收藏此页。

要点

常见问题

Is Base64 encryption?

No. Anyone can decode it. It only changes how data is written.

What is URL-safe Base64?

It replaces + and / with - and _ and removes the = padding so it fits in links.

Is Base64 secure?

No. It is only an encoding that anyone can decode.

What is URL-safe Base64?

A variant using - and _ instead of + and /.

完全免费无费用,无需注册
文件保持私密一切都在您的浏览器中运行
用您的语言轻松使用提供多种语言