PDFFlare

JSON5 / JSONC Parser — Free Online

JSON5 parser online — parse JSON5 / JSONC (tsconfig.json, VS Code settings) with comments and trailing commas. Convert to strict JSON, browser-based.

Parse JSON with comments and trailing commas online — convert JSONC (the format used by tsconfig.json and .vscode/settings.json) and JSON5 to strict JSON that any parser will accept. Single-quoted strings, unquoted keys, and block / line comments all handled.

Need to format strict JSON? JSON Formatter. Sort keys? JSON Sort. View as a tree? JSON Viewer.

How to Parse JSON5 / JSONC to Strict JSON

  1. Paste JSON5 or JSONC

    tsconfig.json, .vscode/settings.json, a config with comments and trailing commas, a snippet using single quotes — anything that strict JSON.parse rejects.

  2. Click Parse to JSON

    PDFFlare strips comments, accepts trailing commas, and converts to strict JSON. The output is what JSON.parse would accept.

  3. Copy and use anywhere

    Drop the strict JSON into any system that doesn't accept JSONC — APIs, databases, JSON-only config loaders.

When Do You Need a JSONC / JSON5 Parser?

tsconfig.json review: You want to inspect a tsconfig in a tool that only speaks strict JSON. Paste, parse, get clean output.

Migrating from JSONC to JSON: You're moving config out of JSONC into a system that only accepts strict JSON (databases, some CI tools). Convert all the comment-bearing files in one go.

Debugging config drift: Compare two .vscode/settings.json files structurally. JSON Diff expects strict JSON — parse JSONC first, then diff.

JSON-only API ingestion: The source provided JSON5; the sink only accepts strict JSON. Convert in the middle without writing custom code.

Why Use PDFFlare for JSON5 / JSONC Parsing?

Real-World JSONC Coverage

Comments, trailing commas, single quotes, unquoted keys — handles the cases that show up in tsconfig.json, VS Code settings, and most JSON5 configs.

Pretty-Printed Output

Configurable indentation (2 spaces, 4 spaces, tab) so the output matches your project's style.

100% Browser-Based

Configs stay on your device — safe for tsconfig, settings.json, or any internal config with secrets.

No Signup Required

No account, no rate limits.

Frequently Asked Questions About JSON5 / JSONC Parser