Skip to main content

JSON Format

Validate, format, minify, and escape JSON with syntax highlighting, plus one-click TypeScript, Go, and Rust type generation.

Free & Open Source Developer json format beautify minify
Version 2.1.6 Updated 2026-11-25
Download ZTools to Install Install ZTools, then search for "JSON Format" in the Plugin Marketplace

Screenshots

Main View

Key Features

Beautify, minify, and validate JSON syntax

json / json format / json beautify / json validate / json minify

Generate TypeScript, Go, or Rust type definitions from JSON

json to ts / json to go / json to rust / json codegen

Overview & Usage Guide

Validate, beautify, and minify JSON syntax, and generate TypeScript, Rust, or Go type definitions from JSON payloads.

Usage

  • Commands: Beautify & validate JSON (json, json format, json beautify, json validate, json minify) and generate TypeScript / Go / Rust types (json to ts, json to go, json to rust, json codegen).
  • Validation & Indentation: Validates syntax in real time with line and column error locations (handling multiline input, single quotes, trailing commas, etc.). Supports 2-space, 4-space, and Tab indentation (direct copy from the action panel offers 2-space and 4-space options).
  • Clipboard & Output: Read JSON from the clipboard via the action panel (existing input is overwritten only if the clipboard contains valid JSON). Copying beautified JSON, single-line minified JSON, or type definitions is enabled only when the JSON is valid.
  • Type Inference: Keys containing hyphens or non-ASCII characters produce valid identifiers while preserving original keys (serde rename / json tags). Same-named keys with different structures under different objects generate separate types.
  • Large Integer Precision: Formatting, minifying, JSONPath extraction, and type inference process raw numeric literals without losing precision. Integers exceeding i64 infer as u64, and decimals (including 1.0) infer as floating-point types.
  • Shortcuts: Press ⌘/Ctrl+Enter inside the editor to format and open the details view (formatted output, type definitions, and JSONPath list), ⌘/Ctrl+K to open the action panel, and Esc to go back.
  • Codegen Command (json to ts / json codegen): Uses "Generate Type Code" as the primary action and opens directly to the TypeScript / Go / Rust code output without indentation options.

Platforms & Requirements

  • Supported: Windows, macOS
  • Built into the client; no separate installation required.

Network & Data

  • Offline only; all data stays on your device.

Frequently Asked Questions (FAQ)

How do I install and launch "JSON Format" in ZTools?

Open the Plugin Marketplace inside ZTools Workbench, search for "JSON Format", and install it. Then type its name in the launcher bar to open it.

Is "JSON Format" free? Which platforms are supported?

Yes, it is free to install with source code published in the ZTools-extensions repository. Supported platforms: Windows / macOS.