#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
✅ FREE · YAML 1.2 · JSON

YAML Validator: Find the Exact Line That Breaks Your Config

Paste YAML, see whether it parses, and get the line and column of any mistake.

  • 📍 Line and column errors
  • 🔁 YAML to JSON
  • 📚 Multi-document files

How to use the YAML Validator

  1. 1. Paste your YAMLAny config: Compose, Kubernetes, CI workflows or your own data.
  2. 2. ValidateThe parser loads it in your browser and reports the first error it finds.
  3. 3. Convert or fixDownload the JSON or reformatted YAML once it is valid.

The sample has a mistake

The example Compose file looks fine at a glance, but restart: always under db is indented with three spaces while image: above it uses four. YAML uses indentation to decide what belongs to what, so the parser stops with line 10, column 4: bad indentation of a mapping entry. Add one space and it validates as 1 document, and the JSON view shows services, web and db as nested objects.

Indentation errors and tabs cause most YAML problems. The tool also warns if any line starts with a tab, which YAML does not allow for indentation.

What validation can and cannot tell you

  • It checks syntax: indentation, colons, quotes, lists and multi-document files separated by ---.
  • It does not check schema: a Kubernetes file with a misspelt key like contianers still parses. Use kubectl apply --dry-run=server or your tool's own validation for that.
  • Values like no, on or 3.10 can be read as false, true or 3.1 by some tools. Quote them when they are meant as text.

Parsing uses js-yaml 4.1.0 (YAML 1.2), loaded from cdnjs.cloudflare.com the first time you validate, and your YAML is never uploaded. Generate files to check with the Kubernetes YAML generator or the Docker Compose generator, and tidy JSON with the JSON formatter.

Frequently asked questions

Why does YAML not allow tabs?

The YAML specification forbids tabs for indentation because different editors show them at different widths, which would change the meaning.

Is my YAML sent anywhere?

No. The parser library is downloaded once from cdnjs; your text is parsed in this page.

Is the YAML Validator free?

Yes, the YAML Validator is free. The first time you validate your first file, you are asked for your name and WhatsApp number once. After that, this and every other Uncodemy tool opens straight away without the form.

More free tools

See all free tools