Validate config files with line and column errors

Paste JSON, YAML, TOML, INI or XML and get parser diagnostics with source context and targeted hints. Runs locally, no upload.

Try:
Validation report

Validate pasted config files locally

Paste a JSON, YAML, TOML, INI or XML config file and get a syntax report with the format, validity, line and column, source context, and a focused hint when the parser error is recognizable. The validator runs entirely in your browser with pure parsers, so secrets in config snippets are not uploaded.

Use Auto-detect for quick checks or force a format when a file could be read more than one way, such as [server] headers in TOML and INI. Turn on Strict warnings to catch portability issues after syntax passes: duplicate JSON keys, tab indentation, byte-order marks and mixed line endings.

Worked examples

Limits and edge cases

FAQ

Does the config text leave my browser?

No. The page uses WebAssembly parsers in your tab and the CLI runs the same pure Rust code locally. There is no upload, network request or server-side validation step.

Why can auto-detect choose TOML when my file looks like INI?

Some snippets, especially [section] plus key = value, are valid TOML and look like INI. Auto-detect prefers stricter formats when they parse cleanly. Select ini explicitly when you want INI-style rules.

What does strict mode add?

Strict mode adds warnings after syntax succeeds. It flags portability issues such as duplicate JSON keys, tabs in indentation, a leading byte-order mark and mixed line endings. These are warnings, so the report can still say the syntax is valid.

Can this validate Kubernetes, Docker Compose or app-specific schemas?

It validates syntax only. A Kubernetes manifest can be valid YAML but still fail Kubernetes schema rules. Use this first to fix parser errors, then run a schema-aware validator for the specific product.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool config-file-validator "server:
  host: localhost
  port: 8080"

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/config-file-validator/?input=server%3A%0A%20%20host%3A%20localhost%0A%20%20port%3A%208080&format=auto&strict=true&report_format=report&context_lines=2

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.