yq Review (2026): Pricing, Features & Honest Verdict

Reviewed by MakerStack · Published · 3 min read

TLDR

yq is a portable command-line YAML/JSON/XML/TOML processor that uses jq-like syntax for querying and transforming structured data. Essential for Kubernetes and DevOps workflows. Best for: developers working with YAML configs. Price: Free (open source). Rating: 7.6/10

What is yq?

yq is a lightweight command-line processor for YAML, JSON, XML, TOML, and CSV. Created by Mike Farah, it uses a syntax inspired by jq but adapted for YAML’s features (comments, anchors, multi-document files). If jq is the Swiss Army knife for JSON, yq is the equivalent for the broader ecosystem of structured data formats.

In the Kubernetes era, YAML has become the dominant configuration format. yq lets you query, modify, and transform YAML files from the command line or in shell scripts. Extract values from Helm charts, update Kubernetes manifests, merge configuration files, and convert between formats.

Key Features

Multi-Format Support

Process YAML, JSON, XML, TOML, CSV, and Properties files with one tool. Convert between formats seamlessly: yq -o json file.yaml converts YAML to JSON.

jq-Compatible Syntax

The expression language is largely compatible with jq. If you know jq, you can use yq with minimal learning. Select fields, filter arrays, map values, and transform structures using familiar syntax.

In-Place File Editing

Modify YAML files in place with yq -i '.version = "2.0"' chart.yaml. This is invaluable for CI/CD scripts that need to update version numbers, image tags, or configuration values.

Comment Preservation

Unlike most YAML processors, yq preserves comments when editing files. This matters for configuration files where comments provide important context.

Multi-Document Support

Process YAML files with multiple documents (separated by —). Select specific documents, merge them, or process all documents in a pipeline.

Pricing

yq is free and open source under the MIT license. Single binary, install via brew, snap, or download.

Pros and Cons

Pros

  • Handles YAML, JSON, XML, TOML, and CSV with one tool
  • jq-compatible syntax minimizes learning curve
  • In-place editing preserves comments
  • Essential for Kubernetes and Helm workflows
  • Single binary with no dependencies

Cons

  • Not 100% jq compatible, some expressions differ
  • YAML anchors and complex features can produce unexpected results
  • Documentation could be more comprehensive with more examples
  • Confusion with the Python-based yq (different tool, same name)
PlanPricePlan FeaturesBest For
Open SourceFreeAll features, MIT licenseEveryone

Who Should Use yq?

DevOps engineers, Kubernetes administrators, and anyone who works with YAML configuration files. If you pipe kubectl output, edit Helm values, or manage config files in CI/CD, yq is essential. For JSON-only work, jq is more mature, but yq handles JSON too.

Alternatives

jq

The gold standard for JSON processing. More mature and widely used but only handles JSON. Use jq for JSON, yq for everything else.

dasel

Multi-format data selector with simpler syntax. Less powerful than yq for complex transformations but easier to learn.

Python yq

A different tool with the same name that wraps jq for YAML processing. Requires Python and jq installed. The Go-based yq (reviewed here) is standalone and more popular.

FAQ

Which yq should I install?

The Go-based yq by Mike Farah (github.com/mikefarah/yq) is recommended. It’s a single binary, more actively maintained, and doesn’t require Python or jq.

Can yq convert YAML to JSON?

Yes. yq -o json file.yaml converts YAML to JSON. It works for all supported format combinations.

Does yq preserve YAML comments?

Yes. yq is one of the few YAML processors that preserves comments during in-place editing.

yq Pros & Cons

What We Like

  • Handles YAML, JSON, XML, TOML, and CSV with one tool
  • jq-compatible syntax minimizes learning curve
  • In-place editing preserves comments
  • Essential for Kubernetes workflows

What Could Be Better

  • Not 100% jq compatible, some expressions differ
  • Confusion with Python-based yq (different tool)
  • Documentation could have more examples

yq FAQ

Which yq should I install?

The Go-based yq by Mike Farah. Single binary, no dependencies, most actively maintained.

Can yq convert YAML to JSON?

Yes. yq -o json file.yaml converts YAML to JSON.

What is yq?

Command-line processor for YAML, JSON, XML, and TOML with jq-like syntax. Essential for Kubernetes and DevOps configuration management.

How much does yq cost?

yq pricing starts at Free (open source). A free plan is available.

Is yq worth it?

yq is essential for anyone in the Kubernetes/DevOps ecosystem. It brings jq-level power to YAML and handles every structured format you encounter. We rate it 7.6/10.

What are the best yq alternatives?

The top yq alternatives are jq, dasel and Python yq. Each is compared in the alternatives section of this review.

Disclosure: MakerStack is funded by featured placement fees, sponsor slots and a small number of affiliate links. Nobody paid for this review. Where any of those does apply to a review, we say so on the page. The scoring criteria are the same in every case. See our editorial policy.

This review describes yq as we tested it on March 21, 2026. Pricing, plans and features may have changed since. We don't update reviews on request; see our update policy.