Miller

John Kerl·Miller.Miller

Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON

Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON. You get to work with your data using named fields, without needing to count positional column indices. This is something the Unix toolkit always could have done, and arguably always should have done. It operates on key-value-pair data while the familiar Unix tools operate on integer-indexed fields: if the natural data structure for the latter is the array, then Miller’s natural data structure is the insertion-ordered hash map. This encompasses a variety of data formats, including but not limited to the familiar CSV, TSV, and JSON. (Miller can handle positionally-indexed data as a special case.) ## Features - Miller is multi-purpose: it’s useful for data cleaning, data reduction, statistical reporting, devops, system administration, log-file processing, format conversion, and database-query post-processing. - You can use Miller to snarf and munge log-file data, including selecting out relevant substreams, then produce CSV format and load that into all-in-memory/data-frame utilities for further statistical and/or graphical processing. - Miller complements data-analysis tools such as R, pandas, etc.: you can use Miller to clean and prepare your data. While you can do basic statistics entirely in Miller, its streaming-data feature and single-pass algorithms enable you to reduce very large data sets. - Miller complements SQL databases: you can slice, dice, and reformat data on the client side on its way into or out of a database. (Examples here and here). You can also reap some of the benefits of databases for quick, setup-free one-off tasks when you just need to query some data in disk files in a hurry. - Miller also goes beyond the classic Unix tools by stepping fully into our modern, no-SQL world: its essential record-heterogeneity property allows Miller to operate on data where records with different schema (field names) are interleaved. - Miller is streaming: most operations need only a single record in memory at a time, rather than ingesting all input before producing any output. For those operations which require deeper retention (sort, tac, stats1), Miller retains only as much data as needed. This means that whenever functionally possible, you can operate on files which are larger than your system’s available RAM, and you can use Miller in tail -f contexts. - Miller is pipe-friendly and interoperates with the Unix toolkit - Miller’s I/O formats include tabular pretty-printing, positionally indexed (Unix-toolkit style), CSV, JSON, and others - Miller does conversion between formats - Miller’s processing is format-aware: e.g. CSV sort and tac keep header lines first - Miller has high-throughput performance on par with the Unix toolkit - Not unlike jq (for JSON), Miller is written in portable, modern C, with zero runtime dependencies. You can download or compile a single binary, scp it to a faraway machine, and expect it to work.

winget install --id Miller.Miller --exact --source winget

Latest 6.23.0·November 22, 2026

Release Notes

Performance

• Cached regexes are looked up before compiling in regexpCompileCached:https://github.com/johnkerl/miller/pull/2292 • The CSV reader skips the per-field key lookup when the header has no duplicates:https://github.com/johnkerl/miller/pull/2291 • The JSON writer skips the escape loop for strings that need no escapes:https://github.com/johnkerl/miller/pull/2321

Bug fixes

Input handling

• UTF-8 BOM handling is fixed for gzipped CSV input:https://github.com/johnkerl/miller/pull/2278 • A leading UTF-8 BOM is now stripped for TSV and CSV-lite:https://github.com/johnkerl/miller/pull/2281

Time and date functions

• fsec2hms and fsec2dhms carry rounded fractional seconds correctly:https://github.com/johnkerl/miller/pull/2282 • strptime and gmt2sec now work for dates outside the int64 nanosecond range:https://github.com/johnkerl/miller/pull/2285 • File-backed TZ values are supported:https://github.com/johnkerl/miller/pull/2247

String functions

• strmatchx reports starts and ends as UTF-8 character positions, not byte positions:https://github.com/johnkerl/miller/pull/2287 Follow-up docs and generated-file regeneration:https://github.com/johnkerl/miller/pull/2288

Number formatting

• fmtnum now picks its formatter from the conversion verb, not from the end of the format string:https://github.com/johnkerl/miller/pull/2295 Follow-ups:https://github.com/johnkerl/miller/pull/2297 • fmtnum and --ofmt accept the C verbs %i, %u, %D and %U:https://github.com/johnkerl/miller/pull/2298

Integer arithmetic

• int ** int is computed exactly rather than through float64 where possible:https://github.com/johnkerl/miller/pull/2296 Extra unit-test cases (5**0, MinInt64**1):https://github.com/johnkerl/miller/pull/2299 • Integer zero divisors no longer cause a panic in ./, madd, msub, mmul and mexp:https://github.com/johnkerl/miller/pull/2300 • mexp results are reduced for exponents 0 and 1:https://github.com/johnkerl/miller/pull/2301 • abs, ceil, floor, round and sgn stay exact for ints above 2**53:https://github.com/johnkerl/miller/pull/2309 • Unary minus of the minimum int, and roundm on large ints, are fixed:https://github.com/johnkerl/miller/pull/2311

Other

• arrayify leaves its input unchanged:https://github.com/johnkerl/miller/pull/2317 Same for the Mlrval.Arrayify receiver:https://github.com/johnkerl/miller/pull/2320 • On Windows under Git Bash or MSYS2, sh is now found on the PATH:https://github.com/johnkerl/miller/pull/2289 • The mand.mlr magnitude calculation is fixed:https://github.com/johnkerl/miller/pull/2257

Documentation, build and release tooling

• Doubled cd in the library-setup docs is fixed:https://github.com/johnkerl/miller/pull/2276 • Prepipe commands that take flags are now quoted in help examples:https://github.com/johnkerl/miller/pull/2275 • LICENSE.txt is identified as BSD-2-Clause for GitHub's licensee:https://github.com/johnkerl/miller/pull/2241 • The releaser script uses Draft rather than Pre-release:https://github.com/johnkerl/miller/pull/2261 • make -C man build fails when groff is missing or the manpage pipeline fails:https://github.com/johnkerl/miller/pull/2302 Regenerated with the new groff version:https://github.com/johnkerl/miller/pull/2303 • creach is no longer used in docgen:https://github.com/johnkerl/miller/pull/2313 • ~/.mlrrc is suppressed in make docs:https://github.com/johnkerl/miller/pull/2316 • Go version is now 1.26.10:https://github.com/johnkerl/miller/pull/2274 • YAML dependency switched to go.yaml.in/yaml/v3:https://github.com/johnkerl/miller/pull/2319

Dependency bumps (Dependabot)

• github.com/klauspost/compress 1.20.0 to 1.20.4:https://github.com/johnkerl/miller/pull/2258, https://github.com/johnkerl/miller/pull/2269, https://github.com/johnkerl/miller/pull/2304 • golang.org/x/term 0.46.0 to 0.48.0:https://github.com/johnkerl/miller/pull/2264, https://github.com/johnkerl/miller/pull/2305 • golang.org/x/text 0.42.0 to 0.44.0:https://github.com/johnkerl/miller/pull/2262, https://github.com/johnkerl/miller/pull/2306 • golang.org/x/sys 0.49.0 to 0.50.0:https://github.com/johnkerl/miller/pull/2294 • pault.ag/go/debian 0.21.0 to 0.21.4:https://github.com/johnkerl/miller/pull/2279, https://github.com/johnkerl/miller/pull/2284, https://github.com/johnkerl/miller/pull/2310 • github.com/lestrrat-go/strftime 1.2.0 to 1.2.1:https://github.com/johnkerl/miller/pull/2283 • goreleaser/goreleaser-action 7.2.3 to 7.3.0:https://github.com/johnkerl/miller/pull/2270 • actions/upload-artifact 7.0.1 to 7.0.2:https://github.com/johnkerl/miller/pull/2266 • actions/setup-go 7.0.0 to 7.1.0:https://github.com/johnkerl/miller/pull/2318 • codeql-action group updates:https://github.com/johnkerl/miller/pull/2259, https://github.com/johnkerl/miller/pull/2265, https://github.com/johnkerl/miller/pull/2272, https://github.com/johnkerl/miller/pull/2280, https://github.com/johnkerl/miller/pull/2290, https://github.com/johnkerl/miller/pull/2293

New Contributors

• @fzlzjerry made their first contribution in https://github.com/johnkerl/miller/pull/2247 • @kvnloo made their first contribution in https://github.com/johnkerl/miller/pull/2241 • @dcadolph made their first contribution in https://github.com/johnkerl/miller/pull/2276 • @Boulea7 made their first contribution in https://github.com/johnkerl/miller/pull/2278 • @youdie006 made their first contribution in https://github.com/johnkerl/miller/pull/2281 • @ChandraChaan made their first contribution in https://github.com/johnkerl/miller/pull/2282 • @shaurya703 made their first contribution in https://github.com/johnkerl/miller/pull/2285 • @b84330808 made their first contribution in https://github.com/johnkerl/miller/pull/2287 • @ptweezy made their first contribution in https://github.com/johnkerl/miller/pull/2292 • @g4lb made their first contribution in https://github.com/johnkerl/miller/pull/2291 • @waw666waw666 made their first contribution in https://github.com/johnkerl/miller/pull/2295 • @Kernel-Hunter made their first contribution in https://github.com/johnkerl/miller/pull/2296

Full Changelog:https://github.com/johnkerl/miller/compare/v6.22.0...v6.23.0

Installer type: zip

x86—ABEA69C1A7DE0D464D53F67B30B900D0BAEAE861405C151ABAD40EFFCA4DFE11
x64—8192FBC5E959637F4112B34DCFDC518C1B59701BC34777CA528DC749ECE15A1A
arm64—86A14238D63D441E10A1D979A882AFC444EEDC291F5C98D8650A8F9B40162CBC

Details

Homepage
https://github.com/johnkerl/miller
License
BSD-2-Clause
Publisher
John Kerl
Support
https://github.com/johnkerl/miller/issues
Moniker
miller

Tags

csvcsv-formatdata-cleaningdata-processingdata-reductiondata-regressiondevopsdevops-toolsjsonjson-datastatistical-analysisstatisticsstreaming-algorithmsstreaming-datatabular-datatsv

Older versions (8)

6.22.0
x86—A397AD3FE4AC7B7730ABCCF55562692419CB067F222C4D1F85768EC1B548D631
x64—A8B7F5FE321528D181C771948F631115B9C17A8EBDF1C5809DE835349A9DD304
arm64—451949350EFD6EF1357EFC2E2D5A265F1FF3FC47AA27878707560C6EE8A001C1
6.21.0
x86—042AB83E1B7DAE4D5CD37517EFD52F7E2D034A74211F3B07D87E5D4E97E3D957
x64—E4730FAFCE659DB22C619C0FDE51EBA050EDC584A0804FD2C8B2883C8F8D8250
arm64—2F50142276A2058D00742335842831C987CB1961390A7CE7084EEE2DA6E7F7D5
6.20.2
x86—84095BEFDD5827980632034F89B6FE05F9B449FD72DF356C86B3864F5DB4EADC
x64—C49CB6C1DD3A5A8C7B63F64E6758C910CAF4B4B2AAE040E75946AAA5BFF77B6D
arm64—680B999682A9C62EDB4A2DE0DF2B6617B447CB3B003B5CBCC77128E7A97F1E97
6.13.0
x86—D530685B203D31DC115C4E768802D7D6BCB889CFA4DD7C1534DFA37D8B440D1B
x64—A712A31845369AED737519B22B233CE70E1451DA2957E5A048C89693A97B39FC
6.12.0
x86—D2F5BE120095D9E077AEA206E2158255C5F882487EAF0C9E72E47E35708C5236
x64—52C755E01E5C25B1F5505C49B0604E259CDDF14F68784AA779CB276B33948B49
6.11.0
x86—CBA4A2DA0DCE1087C92A4CAEFE76986580139683E45FD3B64EF8103BF35C31CC
x64—AC261B3BB6444780F06406814E687D9072C26C2B72DD924CFB8A68F609ADD2A8
6.10.0
x86—E5E7121C6962E0A9678F539D3C77B505D7CE4497721EAD4EF4B2B54010575D00
x64—82F0204B3E54AB0D201CAEB6B78186710BC03941373C55272082DA473130685B
6.9.0
x86—574BD27CC6F70548FF9CCF7FCB0041E28BC5D5F9458CBC3662B209785902B3DB
x64—B28CBB2517BE4CBF57A3D3AA69A6E643157091561924E6C0382A62A03C89FB80