Validador JSON

Valida la sintaxis JSON al instante โ€” numero de linea, columna y mensajes claros.

Se ejecuta totalmente en tu navegador. Tu JSON no sale de tu dispositivo.
Procesando โ€” Validarโ€ฆ
Entrada
Vista virtualizada โ€” entrada de solo lectura. Solo se renderizan las lineas visibles.
Salida
Vista virtualizada โ€” solo se renderizan las lineas visibles para rendimiento.
Pega JSON para empezar

Como usar

Atajos de teclado
  1. Pega tu JSON Escribe, pega o arrastra y suelta un archivo JSON en el editor.
  2. Elige una accion Cambia entre Formatear, Validar, Minificar y Analizar con las pestanas.
  3. Copia el resultado Pulsa Copiar o usa Ctrl+Mayus+C para copiar la salida.
  • Ejecutar la accion activa โ€” Ctrl+Intro
  • Formatear โ€” Ctrl+Mayus+F
  • Validar โ€” Ctrl+Mayus+V (foco en el editor)
  • Minificar โ€” Ctrl+Mayus+M
  • Analizar โ€” Ctrl+Mayus+L
  • Copiar salida โ€” Ctrl+Mayus+C
  • Limpiar entrada โ€” Ctrl+Mayus+K

Explicaciones de reglas de lint

LINT_DUPLICATE_KEY

Two properties in the same object use the same key. Most parsers keep the later value, which can hide bugs in copied API payloads and config files.

LINT_TRAILING_COMMA

Trailing commas are common in JavaScript and JSON5, but strict JSON rejects them. Remove the comma before the closing brace or bracket.

LINT_LINE_COMMENT

JSON does not support // comments. If you need comments, switch to a JSONC or JSON5-compatible parser instead of strict JSON.

LINT_BLOCK_COMMENT

Block comments are not valid JSON. Remove them or convert the file to a format that explicitly supports comments.

LINT_SINGLE_QUOTED_STRING

Strict JSON requires double-quoted strings and keys. Single-quoted strings usually mean the input is JSON5 or a JavaScript object literal.

LINT_UNQUOTED_KEY

Object keys must be quoted in JSON. Unquoted keys are allowed in JavaScript object literals and JSON5, but not in RFC 8259 JSON.

LINT_BOM

A byte-order mark at the start of the file can confuse downstream tools. Removing it is a safe normalization step.

LINT_CONTROL_CHAR_IN_STRING

Unescaped control characters inside strings can break parsing and transport. Escape them explicitly or remove them.

LINT_EMPTY_INPUT

Empty input does not contain JSON to check. Paste a payload, config, or response body before running lint.

LINT_LOOKS_LIKE_JSON5

This advisory groups comment, quote, and trailing-comma patterns that suggest the input is JSON5-like rather than strict JSON.

Se ejecuta totalmente en tu navegador. Tu JSON no sale de tu dispositivo. Ultima actualizacion: 2026-05-03 Acerca de ToolMatic
What does "Unexpected token" mean?

It means the parser found a character that doesn't belong at that position in JSON. Common causes: trailing commas, single quotes instead of double quotes, unquoted keys, or comments. The error shows the exact line and column, and the offending line is highlighted in the input editor.

What is the difference between Validate and Lint?

Validate checks if your JSON is syntactically correct according to the JSON specification and reports the first error. Lint goes deeper โ€” it finds issues like duplicate keys, trailing commas, comments, and other patterns even in otherwise parseable input.

What is the difference between strict JSON and JSON5?

Strict JSON (RFC 8259) requires double-quoted keys and strings, no comments, and no trailing commas. JSON5 is a superset that allows single quotes, comments, trailing commas, and more. This validator checks against strict JSON.

Does it check JSON Schema?

No โ€” this tool validates JSON syntax, not structure. JSON Schema validation (checking that values match a schema definition) will be available as a separate tool.

Does it report all errors at once?

The Validator reports the first parse error with full context (line, column, excerpt, hint). For multiple findings like duplicate keys or style issues, switch to the Lint tab.

Is my JSON sent to a server?

No. Validation runs entirely in your browser. Your JSON never leaves your device. You can verify this by opening your browser's network tab.