Skip to content
  1. LuzineDebug
  2. Tools
  3. YAML validator

YAML validator: error line and conversion to JSON

Validates YAML (docker-compose, GitHub Actions, Kubernetes), shows the faulty line and tabs, and converts it to JSON. Everything happens in your browser.

The most common YAML traps

  • Tabs: not allowed for indentation. Set your editor to “spaces” for .yml files.
  • Hidden booleans: with YAML 1.1 (PyYAML, older tools) yes, no, on, off become true/false. country: NO (Norway) becomes false. Use quotes.
  • Numbers: 0755 may be read as octal (493), 3.10 becomes 3.1, 1e3 becomes 1000. Quote versions and codes: "3.10".
  • Docker ports: unquoted 22:22 can be read as a base-60 number by YAML 1.1. Always write "8080:80".

Frequently asked questions

What does “found character that cannot start any token” mean?

Most often a tab used for indentation: YAML only accepts spaces. It can also be an @ or a backtick at the start of a value, which must be quoted.

Why “mapping values are not allowed here”?

A second : followed by a space in an unquoted value (command: echo a: b), or a key wrongly indented under the previous one. Quote the value or fix the indentation.

Is my YAML sent anywhere?

No, parsing runs in your browser with the js-yaml library. Still remove secrets (passwords, tokens) before sharing a file.

Errors this tool helps solve

Other tools

Error finder

Paste an error message or a log: the tool recognises the error and opens the right fix.

JSON validator

Validate, format and minify JSON, with the exact line and column of the error.

Regex tester

Test a regular expression live: highlighted matches, groups, replacement.

JWT decoder

Decode a JWT: header, payload, readable expiry dates and whether the token has expired.

HTTP status codes

All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.

Text diff

Compare two versions line by line: additions, deletions, invisible whitespace.

Base64 & URL encoder

Encode and decode Base64 (standard and URL-safe), URL, HTML entities and Unicode escapes, with proper UTF-8 handling.

Hash generator

Computes MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC of a text or file, and compares with an expected hash.

Timestamp converter

Converts a Unix timestamp (seconds, milliseconds, microseconds) to a readable date in any time zone, and back.

Cron explainer

Turns a cron expression into a plain sentence, lists the next runs and flags the traps (day of month AND day of week, time zone).

Chmod calculator

Tick the permissions and get 755 or rwxr-xr-x (and back), with the ready-to-copy command and safe presets by use case.

cURL converter

Paste a cURL command (DevTools “Copy as cURL”): get the fetch, axios, Node, PHP (Laravel Http or curl) or Python requests code.

Stack trace formatter

Formats a stack trace (JS, Python, PHP, Java, .NET, Go), separates your code from libraries and points to the line to open first.