跳转到主要内容
CuteJSON
↑↓ 导航 Enter 选择 Esc 关闭

JSON to Base64 Converter

Encode a JSON document as Base64, or decode Base64 back into JSON, with accents and emoji surviving both directions.

返回所有工具

键盘快捷键

这些快捷键在页面上对应操作存在时有效。

打开命令面板
Ctrl/Cmd + K
运行主要操作
Ctrl/Cmd + Enter
格式化
Ctrl/Cmd + Shift + F
压缩
Ctrl/Cmd + Shift + M
复制输出
Ctrl/Cmd + Shift + C
打开文件
Ctrl/Cmd + Shift + O
下载输出
Ctrl/Cmd + S
关闭此对话框
Esc
打开此对话框
F1 / ?

本地数据

以下所有内容仅存储在此浏览器、此设备上。

未保存的草稿
记住选项的工具

最近打开的文件

    此设备上尚未打开任何文件。

    通过链接分享

    内容被打包在链接 # 号之后的部分。

    分享此页面上的第一个输入。

    暂无可分享的内容。

    JSON

    从 URL 加载

    直接从浏览器获取 URL。

    Base64

    结果将显示在此处。

    完全在您的浏览器中运行。

    关于此工具

    Base64 exists to carry bytes through something that only handles text, which is why it turns up in data URLs, in mail attachments, in JSON Web Tokens and in any configuration file that has to hold a document inside a string. The part browser tools usually get wrong is text that is not ASCII: the browser function for Base64 refuses anything above U+00FF, so one accent, rupee sign or emoji makes it throw. This encodes to UTF-8 bytes first, which is what every other language does, so the result matches what your server produces for the same document. Decoding accepts a data URL prefix, line breaks, and the URL safe alphabet that uses minus and underscore. It also tells three failures apart: text that is not Base64, bytes that are not text, and a decode that worked perfectly and did not produce JSON. A mode picker offers plain text and a real file alongside JSON: text mode skips the JSON check, and file mode moves raw bytes the whole way, so a photo or a PDF can become Base64, or Base64 can become a downloaded file again, without either ever needing to be valid UTF-8. A data URL toggle wraps the result with a MIME type, on any mode, for pasting straight into an img src or a CSS url().

    使用方法

    1. Choose a direction and a mode, then paste your document, your text or your Base64 into the left pane, or choose a file in file mode.
    2. Press Convert. Encoding a JSON document checks that it is valid JSON first; text and file mode encode exactly what was given.
    3. Copy the result, or download it as a file. Decoding a file offers a filename and a download instead of a text preview.