Miller is a command-line tool for querying, reshaping, and converting CSV, TSV, JSON, YAML, and related tabular formats. It works on named fields instead of column positions, like classic Unix text tools for structured data
Overview
Miller targets text-formatted tabular data that remains common in pipelines and on disk. You can filter, sort, aggregate, add computed fields, drop columns, and convert between formats while the tool stays aware of each format’s rules, for example keeping CSV headers in sensible places during sort operations.
Records are treated as key-value maps rather than fixed-position columns, so you refer to fields by name. The tool can handle heterogeneous records where schemas differ between rows, and most operations stream one record at a time so large inputs need not fit entirely in memory.
Verbs cover everyday tasks such as sort, head, and tac, while a put verb accepts small expressions to derive new fields. I/O includes CSV, TSV, JSON, JSON Lines, positional tabular layouts, and pretty-printed views. It is designed to pipe cleanly alongside other Unix utilities.
Typical uses include cleaning and reducing datasets, log processing, format conversion, light statistical reporting, and preparing files for databases or analysis environments. Pre-built packages are documented for common operating systems, and a single portable binary can be copied to remote machines.
Key features
- Named-field tabular processing
- Streaming single-record operations
- CSV, TSV, JSON, and JSON Lines I/O
- Format conversion and pretty-printing
- Sort, aggregate, and filter verbs
- Expression-based field creation via put
- Pipe-friendly Unix toolkit integration
- Heterogeneous mixed-schema record support
Use cases
- CSV and TSV cleaning pipelines
- Log file slicing and conversion
- Database export preprocessing
- Large file streaming transforms
- DevOps tabular data reporting