CSV JSON Transform
Convert and transform CSV, TSV, JSON and JSONL with Miller verbs: filter, sort, join, reshape.
Install
irm https://raw.githubusercontent.com/chayprabs/localtools/main/csv-json-transform/install.ps1 | iexlocaltools-csv-json-transform updatelocaltools-csv-json-transform uninstall
curl -fsSL https://raw.githubusercontent.com/chayprabs/localtools/main/csv-json-transform/install.sh | bashlocaltools-csv-json-transform updatelocaltools-csv-json-transform uninstall
brew install chayprabs/localtools/localtools-csv-json-transformbrew upgrade localtools-csv-json-transformbrew uninstall localtools-csv-json-transform
scoop bucket add localtools https://github.com/chayprabs/homebrew-localtools; scoop install localtools-csv-json-transformscoop update localtools-csv-json-transformscoop uninstall localtools-csv-json-transform
winget install localtools.CsvJsonTransformwinget upgrade localtools.CsvJsonTransformwinget uninstall localtools.CsvJsonTransform
Opens at http://127.0.0.1:47106 in your browser. Run localtools-csv-json-transform --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.
Direct download
| Platform | File | Size |
|---|---|---|
| Linux ARM64 | csv-json-transform-1.0.4-linux-arm64.zip | 5.4 MB |
| Linux x64 | csv-json-transform-1.0.4-linux-x64.zip | 6.0 MB |
| macOS Apple Silicon | csv-json-transform-1.0.4-macos-arm64.zip | 5.6 MB |
| macOS Intel | csv-json-transform-1.0.4-macos-x64.zip | 6.1 MB |
| Windows x64 | csv-json-transform-1.0.4-windows-x64.zip | 6.2 MB |
SHA-256 checksums are in the release notes; the install scripts verify them for you.
See it
How to use
- Drop a CSV, TSV, JSON or JSON Lines file, or paste data. Format, delimiter, header row and encoding are detected; override them if needed.
- Type a Miller verb chain such as filter '$amount > 100' then sort -nr amount then head -n 10, or click a recipe (Convert, Filter, Sort, Stats, Distinct, Pivot, Join) and edit the field names.
- Pick the output format (JSON, JSONL, CSV, TSV, Markdown, PPRINT, XTAB) and press Transform. Check the table preview, then Download or Copy the full result.
- On the command line: localtools-csv-json-transform run --icsv --ojson 'sort -f name' file.csv, or the full Miller CLI with localtools-csv-json-transform mlr.
FAQ
Is this real Miller?
Yes. Miller 6.22 is compiled into the executable as a Go library and runs through the same entry points as the mlr binary, so every verb, flag and DSL function works the same. Errors are Miller's own messages.
How big can my files be?
Streaming verbs (convert, filter, cut, put, head) handle files larger than memory: a 200 MB, 7-million-row CSV converted to JSONL in about 10 seconds using about 150 MB. Verbs that need all records at once, such as sort, reshape long-to-wide or percentiles, keep the data in memory (sort on that file used about 4.5 GB). The web API runs two transforms at once and returns 503 while both slots are busy; the CLI has no concurrency limit.
How do I join two files?
Add the second file in the join box and write FILE2 where its path goes, for example join -j id -f FILE2. The second file can be in a different format (a TSV joined to a CSV works); unpaired records can be kept with --ul / --ur.
My CSV uses semicolons, has a BOM, or came from Excel in Latin-1. Will it work?
Yes. Comma, semicolon, pipe and tab delimiters are detected, a UTF-8 BOM is skipped, UTF-16 files (by BOM) and non-UTF-8 files (read as Windows-1252) are converted to UTF-8. Rows with too few or too many cells are accepted unless you untick Allow ragged rows.
Does my data leave my computer?
No. The tool listens on 127.0.0.1 only, uploads go to a temp folder that is deleted after each request, the page loads nothing from the internet, and shell commands from the Miller DSL are disabled in the web UI.