Tad Quick Start
Tad is a fast viewer for tabular data, with sorting, filtering and pivot tables.
Tad opens:
- CSV and TSV
.csv,.tsvand other delimited text files. Tad works out the delimiter and the column types.- Parquet
- Apache Parquet files, and folders of them
- Databases
- DuckDB and SQLite database files: their tables are listed in the data sources panel
- Saved views
.tadfiles, saved with File › Save As…
Tad reads your file with DuckDB and asks it only for the rows on screen, so large files open quickly.
Opening a file
- File › Open File… (⌘O or Ctrl+O), or Open Directory… for a folder.
- Use Open With › Tad on a file in the Finder or Explorer, or (on macOS) drag it onto Tad's icon in the Dock.
- From the command line:
tad somefile.csv. See The command line.
To try Tad out, open this example, 5,000 movies from IMDB, which comes with Tad:
The pictures below use movie_metadata.csv, 5,000 movies from IMDB, which comes with Tad: open it from Tad's Help › Quick Start Guide.
Columns
Click a column's header to sort by it, and again to reverse the order; shift-click another header to sort by that too. Drag a header to move the column, or its right edge to resize it.
Right-click a header (or click its ⌄) for the column's menu:
- Sort, Pivot rows or Pivot columns by the column, or Filter… its values.
- New column adds a column calculated with a formula, such as
gross - budget. - Format… sets decimal places, thousands separators, dates and so on.
- In pivot rows, show picks how the column's values are summed up in pivot rows: sum, average, median, count and others.
- Color by value shades each cell by its value.
Edit › Copy copies the selected cells; Copy with Headers includes the column names.
View settings
The second button on the left opens View settings, where the whole view is set up:
- Rows, Columns and Sort: drag columns here to pivot and sort by them, and drag them within a shelf to change the order.
- The column list: tick Show, Pivot or Sort for each column. Expand a column (›) for its settings, or set the defaults for all the columns of a type (Integer, Real, Text).
- Options: a histogram in each column's header, and a totals row.
Filters
Click + Filter under the grid and pick a column, or Any column to find text anywhere in a row. For a text column, tick the values to keep (each with its count) or match text; for a number or a date, compare it with a value or give a range.
Each filter is a chip in the filter bar: click it to change it, or × to remove it. The count at the bottom right says how many rows pass.
Pivot tables
A pivot table groups the rows that have the same values in some columns, and sums up the other columns for each group. Here are the top-grossing movies by country and director:
To make this view:
- Filter
grossto is not NULL. - Pivot rows by
country, then bydirector_name. - In View settings, set Label leaf rows with to
movie_title. - Sort by
gross, descending. - Drag
gross's header to the left, next to the pivot column.
Click a row's › to open it. Pivoting columns by a column (Pivot columns by…) spreads its values across the top, as in a spreadsheet's pivot table.
Undo, saving and export
- Edit › Undo (⌘Z or Ctrl+Z) undoes a change to the view.
- File › Save As… saves the view (the file, its pivots, sort, filters and formats) as a
.tadfile to open again later. - File › Export… writes the filtered rows, or the view as shown, to CSV or Parquet.
- View › Reload reads the file again after it changes, and keeps the view.
Data sources
The first button on the left opens Data sources. Open a folder, or a DuckDB or SQLite database, and it lists the files or tables in it. Click one to open it in the same window.
Large files
Tad copies a CSV file into DuckDB when it opens it, and reads a Parquet file where it is. On a recent Mac, a 1.2 GB CSV file (10 million rows) opens in under a second and a 6 GB one (50 million rows) in about 3 seconds; then sorting, filtering and pivoting take well under a second.
- A CSV file takes up to about twice its size in memory. When memory runs short, DuckDB spills to the system's temporary folder, so a file bigger than memory still opens, more slowly.
- Parquet files open at once and need less memory, so for the largest tables, Parquet is the better choice. Opening a folder of Parquet files, or
tad 'data/*.parquet', reads them as one table.
The command line
On macOS, to run tad from a terminal, link the launcher script into a folder on your PATH:
sudo ln -s /Applications/Tad.app/Contents/Resources/tad.sh /usr/local/bin/tad
On Linux, the packages install the tad command. On Windows, add Tad's install folder to your PATH.
Then:
tad somefile.csv tad data/*.parquet # several files, as one table tad https://example.com/data.parquet cat somefile.csv | tad # from standard input
To see the SQL that Tad runs, keep it in the foreground and show the queries:
tad -f --show-queries somefile.csv
tad --help lists the other options.
Your data, and updates
Tad reads your files on your computer, and doesn't send them anywhere. It has no account and no usage tracking. It goes online only to download a DuckDB extension the first time a file needs one (SQLite and Excel files, and web addresses), and, once a day when it starts, to ask GitHub whether there's a newer version of Tad. If there is, it says so at the bottom of the window.
To turn that check off, uncheck Check for Updates at Launch (in the Help menu, or the Tad menu on macOS), or set the environment variable TAD_NO_UPDATE_CHECK=1.
Feedback
Found a bug, or have an idea? Use Help › Report a Problem or Suggest a Feature…, or open an issue on GitHub. Have fun!