YAML Viewer

Explore YAML as a searchable tree, check its syntax and see mappings, sequences, values, anchors and aliases.

Processed locally in your browser

Your YAML is read in this browser tab. It is shown here as you wrote it and is never rewritten.

Input YAML

Max size: 200 kB

Waiting for YAML

Paste YAML, open a file or choose a sample to begin.

Explore YAML

Your YAML will appear here

Paste YAML, open a file or choose a sample, and it opens as a tree you can search.

YAML statistics

Documents
—
Mappings
—
Sequences
—
Scalars
—
Anchors
—
Aliases
—
Max depth
—
Total bytes
—

How to use the YAML Viewer

  1. Paste YAML into the box, open a .yaml or .yml file, or choose a sample.
  2. Read the status under the box. A problem is given with its line and column, and Go to error takes you there.
  3. Explore the structure as a tree or in the Code view, search it, then copy or download your YAML.

Worked example

In this short file, the block named defaults is written once and used again under production.

defaults: &defaults
  retries: 3

production:
  settings: *defaults

The tree shows settings as an alias that points back to &defaults. It is shown as a reference, not copied out, so the tree matches what you wrote.

YAML features

  • Mappings and sequences, with the number of keys or items beside each.
  • Strings, numbers, true or false, and null, each named in words as well as colour.
  • Anchors, aliases and tags shown next to the item they belong to.
  • Several documents in one file, each with its own result.
  • Search across keys, values, paths and list positions.

Anchors and aliases

  • An anchor, written &name, labels an item so that it can be reused.
  • An alias, written *name, refers back to that item.
  • The tree keeps each alias as a reference and does not copy the item out, so a large or looping structure cannot swell the page.
  • Select an alias to move to the item it refers to.
  • An alias with no matching anchor earlier in the document is reported as a problem.

Multiple YAML documents

  • A line containing only --- starts a new document, and ... ends one.
  • Choose a document with the Document selector above the tree. Documents are never merged into one.
  • A problem in one document does not stop the others from being shown.
  • The statistics add up the documents that could be read.

Limitations

  • This is a viewer. It does not tidy, sort, convert or rewrite your YAML, and it does not check it against a schema.
  • Values are read as plain data. Nothing in a tag is run, and a tag is shown as written, not acted on.
  • Merge keys (<<) are shown as ordinary keys and are not merged.
  • A mapping key that is itself a list or mapping, or carries an anchor, is not supported, and the document is reported as not shown.
  • Input over 200 kB, over 80,000 items, over 500 documents or nested more than 200 levels deep is refused with a message.

Privacy and local processing

  • Your YAML stays in this tab

    It is read, checked and shown by this page. The viewer does not upload it.

  • No account required

    Open the page and paste. There is nothing to sign in to.

  • Nothing stored by Numerila

    Your YAML is not kept on a server, in a cookie or in browser storage, and it never goes into the page address.

Working with JSON as well? The JSON Viewer explores it in the same way.

Analytics only runs if you choose to allow it below. Advertising and affiliate tracking are not currently active on Numerila. Your preferences are saved in this browser, but these settings do not activate either service.