• Latest
  • Trending
  • All

YAML Validator: Validate Indentation, Duplicate Keys and Config Structure

June 14, 2026
ssh command cheatsheet

SSH Command Cheatsheet: Connect, Keys, scp, Tunnels (2026)

June 16, 2026
chmod-chown-cheatsheet

chmod and chown Cheatsheet: Linux Permissions, Decoded (2026)

June 16, 2026
systemctl-journalctl-cheatsheet

systemctl + journalctl Cheatsheet: Services and Logs (2026)

June 16, 2026
grep-cheatsheet

The grep Cheatsheet: Search a File, Search a Tree (2026)

June 16, 2026
rsync-cheatsheet

The rsync Cheatsheet: Mirror, Sync, Copy Over SSH (2026)

June 16, 2026
curl-cheatsheet

curl Cheatsheet: Download Files and Test APIs (2026)

June 16, 2026
iptables-vs-nftables-cheatsheet cheatsheet

iptables vs nftables: Linux Firewall Cheatsheet, Side by Side

June 16, 2026
nmcli-cheatsheet cheatsheet

nmcli Cheatsheet: Wi-Fi and Network Connections From the Linux Terminal

June 16, 2026
powershell-networking-cheatsheet cheatsheet

PowerShell Networking Cheatsheet: Test-NetConnection, IP, DNS (2026)

June 16, 2026
tar command cheatsheet

The tar Command Cheatsheet: Create, Extract, Stop Guessing (2026)

June 16, 2026
Linux find command cheatsheet

The find Command Cheatsheet: Every Recipe You Actually Use (2026)

June 15, 2026
Linux networking commands cheatsheet, ip and ss

Linux Networking Commands in 2026: the ip and ss Cheatsheet

June 15, 2026
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools
Tuesday, June 16, 2026
  • Login
People Are Geek
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools
No Result
View All Result
People Are Geek
No Result
View All Result
Home Developer Tools

YAML Validator: Validate Indentation, Duplicate Keys and Config Structure

by People Are Geek
June 14, 2026
in Developer Tools, Online Tools
0
0
SHARES
26
VIEWS
Share on FacebookShare on Twitter

YAML lint, structure review and JSON preview

Paste a YAML config and check it right here, in the browser. Indentation, duplicate keys, lists, anchors, aliases, tags, the profile-specific fields, plus a JSON-style preview. You catch the dumb stuff before CI, Docker, Kubernetes or your site generator does it for you (and usually at the worst possible moment).

This preview handles the everyday config stuff. The weirder bits, complex anchors, merge keys, custom tags, multi-document streams, really need to go through whatever parser your production toolchain actually runs.

Recommended dev gearWe may earn a commission, at no extra cost to you.
Mechanical KeyboardCheck price on Amazon →Usb C Docking StationCheck price on Amazon →Portable MonitorCheck price on Amazon →Clean Code BookCheck price on Amazon →

A YAML validator should help you avoid deployment surprises

YAML reads nicely, which is exactly the trap. The readability hides a sharp edge: indentation is data. Nudge a list item two spaces and suddenly a different service gets that environment variable. Repeat a key and one parser quietly throws away the first value. A stray tab slides past your editor and blows up a pipeline three steps later. Drop a colon into an unquoted value and it gets read as something you didn’t mean. None of these look like much. They’re also the precise category of bug that nobody catches in code review, because the file still looks fine.

So this validator is aimed at the files you actually paste all day. GitHub Actions workflows, Compose services, Kubernetes manifests, static site front matter, the odd config snippet you copied from a Stack Overflow answer. It runs the common syntax and structure checks in your browser, flags issues by line, builds a JSON-style preview for ordinary maps and lists, shows you scalar paths, drops in profile-specific reminders. Honestly, I’d never call it a stand-in for the real Kubernetes or Docker parser, and I might be wrong about how far you can push it, but as a fast first pass it saves you the embarrassment of CI rejecting something obvious.

How to read the YAML report

Look at the score and the first issue, in that order. A clean score just means the file cleared the practical checks on this page, nothing grander. And a warning isn’t a verdict that the file is broken. Sometimes it’s the preview admitting it can’t safely expand something like an anchor or a custom tag. The JSON preview earns its keep when nested lists and maps get too tangled to read by eye. The path explorer is the one you want when the real question is whether some value actually landed under the parent you thought it did.

  • Indentation checks hunt for tabs, weird spacing, and those sudden depth jumps that usually mean a nesting slip.
  • Duplicate key checks watch for the same key showing up twice inside one simple map scope.
  • Scalar detection reads booleans, numbers, null, quoted strings, the simple inline arrays too.
  • Profile checks nudge you about the fields people expect to see for GitHub Actions, Compose, Kubernetes, front matter.
  • Path explorer flattens nested YAML into concrete paths, which is just easier when you’re trying to describe a problem in a ticket.

Practical workflow before committing YAML

Paste it, pick the closest profile, kill the structural warnings before anything else. Treat the JSON preview as a reading aid only. It’s not a promise that your YAML converts cleanly, and please don’t ship it as if it were. Once the page looks calm, run whatever your environment actually trusts: docker compose config, kubectl apply --dry-run, your CI linter, the static site build, whichever applies. Two steps. The browser catches the silly stuff up front, the production parser still gets the last word, and that’s the part I’m not willing to hand over to a tab in a webpage.

Common questions

Is this a full YAML 1.2 parser?

Nope. It’s a practical browser-side validator for the config YAML people write most of the time. The full spec drags in anchors, aliases, tags, merge behavior, a pile of edge cases, and those genuinely belong to a dedicated parser, not this.

Why does duplicate key detection matter?

Here’s the sneaky part. Some parsers just keep the last value and toss the first. So the file reads fine to you, and meanwhile the app is quietly running on a setting you never intended. That gap is where the late-night debugging lives.

Can I paste secrets here?

Don’t make a habit of pasting production secrets into any online tool, this one included. Yes, the parsing happens in your browser and nothing gets sent anywhere. Still, redact your tokens, keys, passwords before you screenshot or share a debug session. Future you will be glad.

Why is YAML so sensitive to indentation?

Because spaces are the structure. No braces, no brackets, and tabs are flat-out banned. So one space out of place either rewrites what the file means or just refuses to parse. That’s the single most common YAML mistake, and it bites everyone at least once.

What is the difference between YAML and JSON?

YAML is basically a superset of JSON built for humans to read: you get comments, anchors, a tidier look. JSON is the stricter one, and it’s better when machines are talking to machines. Worth remembering: every JSON file is already valid YAML.

Why did my YAML value become true or a number unexpectedly?

YAML auto-types anything you leave unquoted. So yes, no, on, off, and bare numbers quietly turn into booleans or numbers behind your back. The fix is boring but reliable: put quotes around it and it stays a string.

JSON FormatterXML FormatterDocker Compose GeneratorCron Expression Generator

Sources & further reading

  • YAML 1.2.2 specification
ShareTweetPin
People Are Geek

People Are Geek

I'm Stephane, a network and systems engineer with over 15 years of hands-on experience on production infrastructure, virtualization (ESXi, Proxmox), networking, and self-hosting. Earlier in my career I built and ran a Linux resource site that became a well-known reference for sysadmins. Today I focus on cybersecurity, and I also work as a technical trainer, teaching networking and security to people who do it for a living. Everything on People Are Geek comes from real-world practice, not theory. I build every tool on this site myself, and I write about what I've actually deployed, broken, and fixed. If it's here, I've used it.

People Are Geek

Copyright © 2017 JNews.

Navigate Site

  • About PeopleAreGeek
  • Affiliate Disclosure
  • All Tools and Articles
  • Contact
  • Cookie Policy
  • Hyper-V Hub: Tools, Error Fixes and Lab Guides
  • Linux Hub: Cross-Distro Reference, Articles, Tools
  • Privacy Policy
  • Sample Page
  • Terms of Service
  • VMware vSphere & ESXi Hub: Tools, Error Fixes and Guides

Follow Us

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Online Tools
  • Network Tools
  • Developer Tools
  • Security Tools

Copyright © 2017 JNews.