Icon JSON / JSONC 美化与压缩

纯本地极速美化与压缩 JSON 数据,支持单行与多行注释,保护隐私。

输入源码:
0 字符 / 0 行
格式化结果:
0 字符 / 0 行
⚡ 100% Client-Side WebAssembly · Zero Server Uploads

Code & Configuration Formatter Online

Format, beautify, validate, and minify JSON, JSONC, SQL, XML, YAML, TOML, Properties, and INI files directly in your browser. Powered by client-side WebAssembly, BoxyKit Formatter runs at high speed with zero cloud transmission—protecting confidential API tokens, database schemas, and proprietary configuration data.

Key Features for Developers & DevOps

⚡

JSON & JSONC Comment-Preserving

Beautify or minify JSON with customizable 2 or 4-space indentation. Full support for JSONC with single and multi-line comments.

🗄️

Multi-Dialect SQL Query Beautifier

Format complex SQL statements with intelligent clause indentation and optional keyword uppercasing (MySQL, PostgreSQL, SQLite).

⚙️

Full Config Ecosystem (YAML, TOML, INI)

Clean and format Kubernetes YAML manifests, Docker Compose, Cargo.toml, Python pyproject.toml, and INI configuration files.

📄

XML & SVG Pretty-Printer

Format nested XML and SVG vector graphics with clean attribute alignment, tag closing, and minification.

How to Format Code & Configs

1

Select Format

Choose your target syntax from the sidebar: JSON, SQL, XML, YAML, TOML, Properties, or INI.

2

Paste Code or Load Sample

Paste raw or minified code into the input pane, or click "Load Sample" to explore formatting options.

3

Customize Rules

Adjust indent spacing (2 or 4 spaces) or toggle SQL keyword uppercase formatting according to your team conventions.

4

Format, Copy, or Download

Click "Format / Beautify" or "Minify" for sub-millisecond results, then copy to clipboard or download as a file.

⚡

Pure Client-Side WebAssembly Parser Engine

BoxyKit Formatter runs industry-standard AST parsing and formatting engines directly in WebAssembly (WASM). Your code strings, configuration files, and SQL database queries are parsed entirely in local memory. No analytics trackers, no telemetry, no rate limits, and 100% offline capability.

Frequently Asked Questions

Q: Is my code or configuration data uploaded to any server?
Never. All formatting, indentation, minification, and parsing happen strictly inside your browser's WebAssembly sandbox. Not a single character is transmitted across the network.
Q: Does BoxyKit support JSON with comments (JSONC)?
Yes. Standard JSON parsers fail on comments, but BoxyKit includes full JSONC support, safely preserving your inline // and /* */ comments while formatting structure and indentation.
Q: Can the SQL formatter convert keywords to uppercase?
Yes. In the SQL tool, you can toggle the 'SQL Keywords' selector between 'Uppercase' (e.g. SELECT, FROM, WHERE, JOIN) and 'Preserve Original'.
Q: Can I minify code as well as beautify it?
Yes. Simply click the 'Minify' button to strip unnecessary whitespace and newlines, reducing payload size for JSON, XML, or SQL queries.
Q: Does BoxyKit Formatter support large files?
Yes. Thanks to WebAssembly's native execution speed and linear memory management, BoxyKit formats multi-megabyte JSON payloads and large SQL dumps in milliseconds without browser freezing.
Q: Can I use BoxyKit Formatter offline without internet?
Yes. Once loaded, the WebAssembly module is cached and operates entirely offline. You can safely format proprietary corporate configs on air-gapped laptops.

Explore More Privacy-First Tools