Skip to content
YAML → Tree and JSONDeveloper tools

YAML Viewer

Check YAML and see it as a tree you can open and close. Find keys and values, copy a key’s path, read several documents, and get the same data as JSON. Nothing is uploaded.

About this tool

About YAML Viewer

YAML Viewer helps you read YAML files such as docker-compose.yml, Kubernetes manifests, GitHub Actions workflows, OpenAPI specs and app settings. YAML is easy to write but hard to read once it gets long, because its structure lives in the indentation. Paste your YAML or open a .yml file and the tool checks it at once. If something is wrong, it tells you the line and column and shows that line with an arrow, which is usually a tab, a missing space after a colon, or an item that is indented one step too far. When the YAML is valid, it is shown as a tree. The first three levels are open; tap the arrows to open or close any branch. Values are coloured by kind, so text, numbers, true and false, and empty (null) values are easy to tell apart, and each list or map shows how many items it holds. Type in the search box to find a key or a value: the branches that contain it open and the matches are marked. Tap a key to copy its path, such as services.web.image or hosts[0].name, which is what you need in tools like yq, in Helm values or in code. Files with several documents separated by three dashes, as Kubernetes often uses, can be read one document at a time. Anchors and aliases are resolved, and merge keys (<<) are applied, so you see the values the program will really get. The YAML is read with the YAML 1.2 core rules, so yes and no stay text. Copy the data as JSON or download it as a .json file. Everything happens in your browser, so secrets in your files are not uploaded.

YAML Viewer tool

When a YAML viewer helps

Long YAML files made readable

Docker Compose

See every service and its settings.

Exampleservices.api.environment

Kubernetes manifests

Read each document of a file.

ExampleDeployment, then Service.

CI workflows

Check a GitHub Actions file before pushing.

Examplejobs.build.steps[2]

OpenAPI specs

Find an endpoint in a long spec.

ExampleSearch for /users.

App settings

Paths for yq, Helm or code.

ExampleTap a key to copy it.

Finding a mistake

The line and column of a YAML error.

ExampleA tab instead of spaces.

YAML tips

Fewer YAML surprises

Spaces, not tabs

YAML does not allow tabs for indentation; most errors come from a tab or a wrong indent.

Quote odd values

Put quotes around values such as "8080:80", "on" or a time like "12:30".

Anchors are applied

The tree shows the final values after &anchors, *aliases and << merges.

Use the path

A copied path such as services.web.image works in yq with a dot in front.

Convert YAML and JSON

Both ways, with options.

Open YAML to JSON

Check a compose file

Docker Compose rules too.

Open Compose Validator
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed YAML Viewer and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 29 November 2026

Answers and guidanceFrequently Asked Questions
How do I view a YAML file?
Paste it or open the file. If it is valid you see it as a tree you can open and close; if not, the error shows the line and column.
Why does my YAML not load?
Most often a tab, a missing space after a colon, or an item indented one step too far. The tool shows the line with an arrow.
Can it read several documents?
Yes. Documents separated by --- appear one at a time; choose the document in the list.
Are anchors and merge keys handled?
Yes. Aliases are resolved and << merge keys are applied, so you see the values a program will get.
How do I copy the path of a key?
Tap the key in the tree. Its path, such as services.web.image or hosts[0].name, is copied.
Can I get JSON?
Yes. Copy the data as JSON or download a .json file.
Is my YAML uploaded?
No. It is read in your browser, so passwords and keys in the file stay on your device.
More tools for your workflowRelated Tools

YAML to JSON Converter

Convert YAML to JSON and JSON to YAML as you type. Anchors, merge keys and several documents work, and errors show the line.

YAML Formatter and Validator

Check YAML with a full YAML 1.2 parser, see errors by line, catch values older YAML readers misread (yes, no, 0755, 22:22), tidy the indentation, and turn YAML into JSON or JSON into YAML.

Docker Compose YAML Validator

Check a docker-compose.yml file for YAML syntax errors and common Compose mistakes, with the exact line of each syntax error.

JSON Formatter

Format, validate and minify JSON: 2 spaces, 4 spaces or tabs, sort keys, see the exact line and column of errors, fix trailing commas and quotes, copy or download.

1 / 3
Browse all developer tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.