01What is YAML Path Finder?
Long YAML files hide things. You know a Deployment sets an image somewhere, but scrolling through 200 lines of nested keys to find it gets old fast. Paste the document here and you get a table of every value, with its full path and the line it sits on. The parser walks the text line by line and tracks indentation, which is how YAML 1.2 nests block mappings and sequences. Nested keys are joined with dots, and list items get zero-based indexes in brackets. So a container image in a Kubernetes manifest shows as spec.template.spec.containers[0].image, and the second step of a GitHub Actions job as jobs.build.steps[1].run. Lists written at the same indent as their parent key, the compact style many workflow files use, are handled. So are nested sequences like - - a, which become matrix[0][0]. Keys that are not simple identifiers, such as app.kubernetes.io/name or a quoted "my.key", are written in bracket form like labels["app.kubernetes.io/name"]. That keeps the path readable without guessing where one key ends. Values are cleaned the way a reader would expect. Double and single quotes are removed, escapes are decoded, trailing # comments are cut from plain values, and anchors (&name) and tags (!!str) are dropped. Block scalars that start with | keep their line breaks. Ones that start with > are folded onto one line. Files with several documents split by --- get a [doc 0], [doc 1] prefix on every path. Here is a small worked case. The input server: on line 1, then host: localhost and port: 8080 indented under it, gives two rows. They are server.host = localhost on line 2 and server.port = 8080 on line 3. Only leaf values are listed, so the parent key shows up inside each path. The search box filters by text in either the path or the value, and a counter shows how many rows match. You can copy a single path, or use Copy All to grab every visible row as path = value lines. It has limits, and we would rather you know them up front. Flow collections like [a, b] or {x: 1} stay as one value instead of being split into items. Aliases such as *b are shown as written, not expanded to the anchored value. Multi-line plain scalars are not joined. The paths use dot notation, which is close to yq syntax but not identical, so check them before pasting into a script.
DevOps engineers and CI maintainers who need the full path and line number of a value buried in a Kubernetes, Compose or workflow file. The tool runs entirely in your browser, so your data never leaves your device.
02How to use YAML Path Finder
- Paste YAML into YAML Input, or load the Kubernetes Deployment, Docker Compose or GitHub Actions example.
- Read the Path, Value and Line columns in the results table.
- Type in Search paths or values... to filter the rows, and watch the match counter.
- Click the copy icon on a row to copy its path.
- Use Copy All to copy every visible row as path = value lines.
03Worked examples
- Input:
server: host: localhost port: 8080 - Result:
server.host = localhost (line 2) server.port = 8080 (line 3) - Only leaf values become rows. The parent key appears inside each path.
- Input:
jobs: build: steps: - uses: actions/checkout@v4 - name: Test run: npm test - Result:
jobs.build.steps[0].uses = actions/checkout@v4 (line 4) jobs.build.steps[1].name = Test (line 5) jobs.build.steps[1].run = npm test (line 6) - The list sits at the same indent as steps:, the compact style, and still gets zero-based indexes.
- Input:
"my.key": 1 labels: app.kubernetes.io/name: web - Result:
["my.key"] = 1 (line 1) labels["app.kubernetes.io/name"] = web (line 3) - Keys with dots or slashes use bracket notation so the path stays unambiguous.
- Input:
tags: [a, b] note: "hi" # comment base: &b x ref: *b - Result:
tags = [a, b] note = hi base = x ref = *b - Flow lists stay as one value, quotes and comments are stripped, anchors are dropped, and aliases are not expanded.
- Input:
script: | echo one echo two msg: > folded text - Result:
script = "echo one\necho two" (line 1) msg = "folded text" (line 4) - The literal block keeps its newline and the folded block joins lines with a space. Quotes added here only to show the newline.
- Input:
a: 1 --- b: 2 - Result:
[doc 0] a = 1 (line 1) [doc 1] b = 2 (line 3) - Each document separated by --- gets its own prefix.
04Common use cases
- Finding the exact line that sets an image tag in a long Kubernetes Deployment before a release
- Searching a docker-compose.yml for every value that mentions a hostname or port
- Listing each step of a GitHub Actions workflow with its index when writing a review comment
- Building a starting path for a yq query or a Helm --set flag
- Checking what a multi-document manifest contains, one [doc n] block at a time
- Confirming that a | block scalar in a config keeps its line breaks the way you expect
05Tips
- yq paths start with a dot and quote unusual keys differently, so add the leading dot and recheck bracket keys before running a yq command.
- Values like 3000:3000 or pgdata:/var/lib/postgresql/data have no space after the colon, so YAML treats them as plain strings, and so does this tool.
- Search for a value such as an image name to find which path sets it, then use the Line column to jump there in your editor.
- If an alias row shows *name, search for &name in your file to find the anchored value it points to.
- Tabs are not allowed for YAML indentation. The tool converts them to two spaces, but a strict parser will reject the file.
06Related concepts
YAML, Dot notation, yq, JSONPath, Kubernetes manifests.
Frequently Asked Questions
What is YAML Path Finder?
YAML Path Finder is a free, browser-based developer tool on AIDToolStack. Find dot-notation paths in YAML It requires no installation or sign-up and works entirely in your browser.
Is YAML Path Finder free to use?
Yes. No sign-up, no fees and no usage cap.
Does YAML Path Finder store my data?
No. It runs in your browser; nothing is uploaded.