YAML Viewer.

Open or drop a .yaml file to read it with highlighting and collapsible blocks. It stays in your browser.

Reading a file

See the shape of a YAML file, not just its text

Long configuration files are hard to read as plain text: the indentation that carries the structure blurs after a few screens. This viewer keeps it visible and lets you hide what you don't need.

Colors · line numbers

Highlighting

Keys, strings, numbers and comments each get their own color, and every line is numbered, so you can point a colleague at line 42.

Gutter arrows · Fold all

Collapsible blocks

Each mapping and list has an arrow in the gutter. Fold all collapses the file to its top-level keys; open only the branch you are reading.

Validate

Errors on their line

Validate parses every document in the file and marks the line of the first problem. Kubernetes, Docker Compose, GitHub Actions and other known formats are also checked against their schema.

Open · drop · paste

Your file, locally

Pick a .yaml or .yml file, drag it onto the viewer, or paste text. The file is read by your browser and never uploaded.

In your browser

View YAML wherever you open it

The YAML Validator extension for Chrome brings the same reading view to the YAML you come across while browsing, without copying it here first.

https://…/config.yaml

Raw YAML links

A raw .yaml or .yml URL, such as a file on raw.githubusercontent.com, opens in a full-page viewer with highlighting, line numbers and collapsible blocks instead of plain text. Edit & validate moves it into the extension's editor.

github.com/…/blob/…

GitHub files

On a YAML file page on GitHub, a Fold button appears over the code. Click it to collapse sections of a long workflow or manifest; click Unfold to return to GitHub's view.

Download → editor

YAML downloads

When a site sends a YAML file as a download, the extension opens it in its editor so you can read it right away instead of hunting for it on disk.

Add to Chrome →
FAQ

Questions

Is my file uploaded anywhere?

No. Opening, folding and validating all happen in your browser. The text is kept in this browser's local storage so it is still here when you come back; Clear removes it.

Can I edit the file while viewing it?

Yes. The viewer is an editor: change anything, then press Ctrl+S (⌘S on a Mac) to download the result, or Share to copy a link that opens the same text.

Does it handle files with several documents?

Yes. Documents separated by --- are shown in one view, and Validate checks each of them. The sample above holds a Deployment and a Service.

Why does a value look different from what my program reads?

Some unquoted values change type depending on the parser: no can become false, 010 an octal number. See YAML gotchas for the common cases and how to quote around them.