Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>JSON Blob FormatterNew to Visual Studio Code? Get it now.
JSON Blob Formatter

JSON Blob Formatter

Chetan Datta M

|
6 installs
| (0) | Free
Formats minified JSON blobs into pretty-printed JSON
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Blob Formatter

Format minified/escaped JSON blobs into readable, pretty-printed JSON with one command.

Features

  • Instantly convert single-line, quoted-and-escaped JSON blobs—like those from logs or APIs—into properly indented, readable JSON.
  • Handles files where the JSON payload is surrounded by outer quotes and inner escape sequences.

Usage

Format JSON Blob to Pretty JSON

  1. Open a file containing a minified or escaped JSON blob, such as:
    "{\"name\":\"value\",\"list\":[1,2,3]}"
    
  2. Press Ctrl+Shift+P (Cmd+Shift+P on Mac) to open the Command Palette.
  3. Type and select Format Minified JSON.
  4. The document will be replaced with beautiful, readable JSON:
    {
      "name": "value",
      "list": [1, 2, 3]
    }
    

Convert Pretty/Regular JSON back to JSON Blob

  1. Open a file containing regular multi-line or pretty-printed JSON.
  2. Press Ctrl+Shift+P (Cmd+Shift+P on Mac) to open the Command Palette.
  3. Type and select Convert To JSON Blob.
  4. The file will be replaced with a single-quoted, escaped JSON blob suitable for embedding/transmission.

Example:

{
  "hello": "world",
  "list": [1, 2, 3]
}

Becomes:

"{\"hello\":\"world\",\"list\":[1,2,3]}"

Commands

  • Format Minified JSON

    • Command ID: json-formatter-extension.formatMinifiedJson
    • Accessible from the Command Palette
  • Convert To JSON Blob

    • Command ID: json-formatter-extension.convertToJsonBlob
    • Converts a pretty/normal JSON back to a minified escaped JSON blob for storage or cross-system copying.

Extension Settings

This extension has no settings.

Requirements

  • Visual Studio Code 1.85.0 or newer

Release Notes

0.0.1

  • Initial release. Format minified/escaped JSON blobs into pretty JSON.

For help or questions, visit the VS Code Extension documentation.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft