🔍

首页Home › 开发工具Developer Tools

🎒 JSON ↔ TOON 互转JSON ↔ TOON Converter

在 JSON 和 TOON(Token-Oriented Object Notation,面向大模型提示词的紧凑格式)之间互相转换,支持逗号、Tab、竖线分隔符,并对比字符数节省了多少。Convert between JSON and TOON (Token-Oriented Object Notation, a compact format for LLM prompts) with comma, tab or pipe delimiters, and see how many characters you save.

使用说明与常见问题How-to & FAQ

「JSON ↔ TOON 互转」是什么?What is the JSON ↔ TOON Converter tool?

在 JSON 和 TOON(Token-Oriented Object Notation,面向大模型提示词的紧凑格式)之间互相转换,支持逗号、Tab、竖线分隔符,并对比字符数节省了多少。Convert between JSON and TOON (Token-Oriented Object Notation, a compact format for LLM prompts) with comma, tab or pipe delimiters, and see how many characters you save.

如何使用「JSON ↔ TOON 互转」?How do I use the JSON ↔ TOON Converter?

选择转换方向,把 JSON 或 TOON 粘贴到输入框即可。对象数组会变成表格形式,例如 users[2]{id,name}: 后面每行一条记录;反向转换会严格校验行数和列数。Choose a direction and paste JSON or TOON. Arrays of objects become tables such as users[2]{id,name}: followed by one row per record; decoding strictly checks row and column counts.

TOON 是什么?为什么能省 token?What is TOON and why does it save tokens?

TOON 是 2025 年出现的开源数据格式,用缩进表示层级,对字段相同的对象数组只写一次表头、每条记录一行(类似 CSV),省掉了 JSON 里重复的键名、引号和括号,适合把结构化数据放进大模型提示词。TOON is an open data format from 2025 that uses indentation for nesting and, for arrays of same-shaped objects, writes the field names once in a header with one row per record (like CSV), dropping JSON's repeated keys, quotes and braces — handy for LLM prompts.

转换会丢数据吗?Is the conversion lossless?

对普通 JSON 数据是无损的:JSON → TOON → JSON 可以得到相同的数据。本工具使用 TOON 官方开源实现(MIT 许可,已本地打包),反向解析采用严格模式。For ordinary JSON data it is lossless — JSON → TOON → JSON gives the same data. The tool uses the official open-source TOON implementation (MIT, bundled locally) and decodes in strict mode.

「JSON ↔ TOON 互转」免费吗?数据会上传吗?Is the JSON ↔ TOON Converter free? Is my data uploaded?

「JSON ↔ TOON 互转」完全免费,无需注册或安装,手机和电脑都能用;所有处理都在你的浏览器本地完成,输入的内容和文件不会上传到服务器。The JSON ↔ TOON Converter is completely free with no sign-up or install and works on phones and desktops; everything runs locally in your browser and nothing you enter is uploaded.

相关工具Related tools

🧾 JSON 格式化校验JSON Formatter & Validator🔀 YAML JSON 互转YAML to JSON Converter📊 CSV JSON 互转CSV to JSON Converter⚙️ JSON 转 TOMLJSON to TOML Converter🌲 JSON 可视化树形查看器JSON Tree Viewer📝 JSON 转 Markdown 表格JSON to Markdown Table🔗 JSON 合并工具JSON Merge Tool🧹 JSON 清理工具(去空值)JSON Cleaner (Remove Empty Values)

← 全部工具All tools