Browser-local TSV utility

Edit TSV files in your browser

Open a file to inspect, filter and change tab-separated data. Processing stays in your browser.

  1. Choose or drop one TSV file, or try the city sample.
  2. Inspect columns, edit cells, and optionally filter or sort rows.
  3. Use Download a copy for the complete TSV, or More document tools → TSV for the filtered view.

Files of 8 MiB or larger open in a paged TSV editor. Active-view TSV, CSV and JSON downloads are available for files under 8 MiB.

Inspect before exporting

Keep source values as text, review columns, and download the active view.

For unequal row widths, expand Inspect original field counts, select the original TSV, choose Plain TSV or Spreadsheet-quoted TSV and inspect. For example, a two-field header followed by a one-field record reports one missing field. Download complete field-count report gives every mismatch and its physical source lines, with numerical counts only. The original stays unchanged; no repair is applied. Inspection supports valid UTF-8 up to 8 MiB, 100,000 data records, 4,096 fields, 1 MiB per record and 2 million expected or observed cells. Invalid quotes, encoding or exceeded limits refuse the whole report. Change the file or rules to discard an old result.

If the report has missing fields and no extra fields, you can explicitly choose a trailing-empty-field copy. Confirm that every missing field belongs at the end as blank text, then choose Prepare trailing-empty-field copy. Review the added-field counts and record locations before Download trailing-empty-field copy. Only tab separators are inserted; every original byte, quote, BOM and line ending is retained. This cannot infer missing positions or recover values. The padded record must stay within 1 MiB, the complete copy within 64 MiB and the table within 2 million cells. Any extra fields, invalid syntax, encoding or exceeded bounds refuse the entire copy. Changing the source or rules, or removing your intent, discards the prepared copy. No existing editor or source file is changed.

To choose a different width deliberately, expand Choose a field count for a separate copy after inspection. Enter Fields in every copied record yourself and confirm I intend blank trailing fields, including any new header fields. For example, with a two-field header and a three-field data record, choosing 3 appends one blank header field and retains the three authored data fields. Choose Prepare field-count copy, review the header-inclusive changes and original record locations, then separately choose Download field-count copy or Download change report. Nothing downloads automatically. A wider-than-chosen record or invalid syntax refuses the whole copy; missing positions, values and new names are never guessed. Valid UTF-8, the same original-input limits, 2 million complete output cells including the header, 1 MiB per padded record and 64 MiB of complete output apply. Changing the original, input rules, width or intent, or cancelling preparation, discards the proposal. These browser-only copies preserve the original and any open editor; native apps and extensions require their own support.

One workspace for your data

Choose your file here, then use the full editor with sorting, schema and export tools. Column recipes offer split, combine, duplicate removal and reviewed decimal calculations. Duplicate-key trimming and case matching affect comparison only. Export removed rows to review original records.

In the rich editor for files under 8 MiB, Copy with headers explicitly includes the selected column names. Download a source copy retains the complete document; active-view exports follow filters and sorts and require files under 8 MiB.

Other ways to work with TSV

Run these examples locally. Choose the method and TSV dialect that match your file; the output rules differ from this website’s compatibility conversion.

How to edit TSV values with Python

Writes edited.tsv, changing note to Reviewed for each id equal to 00123. Other cell strings remain unchanged.

Before you start

  • Install Python 3; csv and json are included, so no package installation is needed.
  • Put input.tsv in your working folder. These examples read UTF-8 spreadsheet-quoted TSV with a header. For merge, add second.tsv; for editing, use columns named id and note.
  1. Save the Python code as tsv_task.py, then run python3 tsv_task.py from that folder. On Windows, use py tsv_task.py.
  2. Inspect the separate output before replacing any source file.
Python TSV task
import csv

with open("input.tsv", encoding="utf-8-sig", newline="") as source:
    reader = csv.reader(source, delimiter="\t", strict=True)
    columns = next(reader)
    rows = list(reader)
if any(len(row) != len(columns) for row in rows):
    raise ValueError("Each record must have the header's field count")

id_column = columns.index("id")
note_column = columns.index("note")
for row in rows:
    if row[id_column] == "00123":
        row[note_column] = "Reviewed"
with open("edited.tsv", "w", encoding="utf-8", newline="") as result:
    writer = csv.writer(result, delimiter="\t")
    writer.writerow(columns)
    writer.writerows(rows)

Limits and output

  • Values remain strings, including leading zeroes, empty fields and text such as NULL. This does not infer numeric or date types.
  • Quoted tabs and newlines are supported. For plain TSV where quotes are literal, add quoting=csv.QUOTE_NONE to the reader; plain output cannot represent tabs or newlines inside fields without an agreed escaping rule.
  • The example holds records in memory and rewrites quoting and line endings; it is not a byte-preserving copy. It does not prefix spreadsheet formulas: import sensitive columns as text and review formula-looking values before opening a spreadsheet.

Documentation: Python csv reader, writer and dialects

How to edit TSV values with DuckDB

Writes edited.tsv, changing note to Reviewed for each id equal to 00123. Other cell strings remain unchanged.

Before you start

  • Install the DuckDB command-line client using its official installation instructions. On macOS with Homebrew, run brew install duckdb.
  • These SQL examples assume input.tsv has exactly the columns id and note. Adjust force_not_null and the editing expressions for your actual columns; add second.tsv for merging.
  1. Run duckdb in the folder containing the files, paste this SQL, then enter .quit when finished.
DuckDB SQL
CREATE TEMP TABLE data AS SELECT * FROM read_csv('input.tsv', delim='\t', header=true, all_varchar=true, force_not_null=['id','note']);
UPDATE data SET note = 'Reviewed' WHERE id = '00123';
COPY data TO 'edited.tsv' (FORMAT CSV, DELIMITER '\t', HEADER true);

Limits and output

  • all_varchar keeps columns as text; force_not_null keeps empty id and note fields as empty strings rather than SQL NULL. DuckDB may normalize blank or duplicate column names, so use Python's columns/rows JSON shape when exact headers matter.
  • This reads spreadsheet-quoted TSV, not ClickHouse-style backslash-escaped TSV. SQL exports retain literal formula-looking strings; spreadsheet applications may interpret them when opened.
  • File size and operation complexity still depend on available memory and disk space; no universal large-file guarantee applies.

Documentation: DuckDB installation; DuckDB CSV options; DuckDB COPY exports

How to edit TSV values with ClickHouse

Create a separate output using ClickHouse locally. These SQL copies are sorted by id and note, rather than preserving physical source order.

Before you start

  • Install the ClickHouse binary for your platform using the official installation instructions. The command below is for a Unix-style shell.
  • Use a UTF-8 input.tsv with exactly the unique header names id and note. Add second.tsv with the same columns for merging; adjust the declared String schema for other files.
  1. Run the command from the folder containing your TSV. Choose an output name that does not already exist; ClickHouse refuses to overwrite an existing output file.
ClickHouse local command
clickhouse local --path ./tsv-local-work --max_threads 2 --multiquery <<'SQL'
SET format_csv_delimiter = '\t';
SET input_format_csv_allow_whitespace_or_tab_as_delimiter = 1;
SELECT id, if(id = '00123', 'Reviewed', note) AS note
FROM file('input.tsv', 'CSVWithNames', 'id String, note String') ORDER BY id, note
INTO OUTFILE 'edited.tsv' FORMAT CSVWithNames;
SQL

Limits and output

  • The CSVWithNames reader is explicitly configured with a tab delimiter and quoted-field support. ClickHouse's native TabSeparated format instead uses backslash escaping and is not interchangeable with spreadsheet-quoted TSV.
  • The declared String columns preserve leading zeroes and empty text for this schema. ClickHouse CSV rules can trim unquoted spaces; inspect whitespace-sensitive data. This is not a byte-preserving export and does not prefix formula-looking text for spreadsheet use.
  • Sorting and temporary tables can require substantial memory or disk. The sample has no account or remote server, but local execution still needs sufficient resources.

Documentation: ClickHouse installation; ClickHouse local; ClickHouse CSVWithNames

TSV questions and answers

Can I inspect and edit a TSV file online?

Open or paste tab-separated text, inspect columns, edit cells, and filter or sort rows. Source values stay as text. Download a copy saves the complete TSV; active-view exports follow your filters and sorting.

Can I export my filtered TSV view to Excel?

For a loaded browser table from a file under 8 MiB, filter or sort the rows, then open More document tools and choose Export current view as XLSX. On a narrow screen, open Show Tools first. The separate workbook includes every matching row in the current sort order and the original headers; selecting cells does not narrow this copy. For example, filtering to id 00123 exports that row with 00123, large identifiers and formula-like values stored as text cells. Your TSV, edits, Undo history and source-save state stay unchanged. XLSX copies support 100,000 data rows, 2,000 columns, 1,000,000 cells including headers, 32,767 characters per cell and 64 MiB of text/output. Unsupported controls or malformed Unicode refuse the complete copy. Cancel discards preparation; workbook creation cannot stop at every instruction. Paged tables, installed apps and extensions require their own support. The To Excel converter instead reads its selected complete source file.

Can I download just the selected TSV cells?

In the browser editor, select a cell and Shift-click or Shift-arrow to extend a rectangular selection. Filters and sorting determine the row order. For a loaded table under 8 MiB, open More document tools; for a paged table, open Selection and replace. On a narrow screen, use Show Selection and replace for a paged table, or Show Tools for a loaded table. Choose Selection export format, then Export selected cells as CSV, TSV or XLSX. The separate copy contains only those selected rows and columns, with their positional headers, including blank or duplicate names. For example, selecting two id cells exports their id header and both identifiers. CSV and TSV prefix formula-like text, including headers, with an apostrophe; this changes those strings and spreadsheet interpretation varies. XLSX stores literal text. Selected copies support 100,000 selected cells, 2,000 columns and 64 MiB of text and complete output; XLSX also requires valid controls/Unicode and 32,767 characters per cell. Cancel discards preparation; an already dispatched browser download may still finish. The source, selection, edits and Undo history stay unchanged. Paged selected copies also enforce the current session range budget (up to 100,000 cells) and 16 Mi characters of captured text; a large source does not make the complete file an exportable selection. Custom hosts, installed apps and extensions require separate support. Complete current-view exports remain available only for loaded tables under 8 MiB and stay independent of selection.

Can I save and reopen my TSV workspace as a project?

In the browser editor, choose the Project folder button beside the document. On a narrow screen, choose Show Tools, then the Project folder button in the tool row below the document name. Choose Back to document to return to the table. Enter a Project name and choose New project, then Save project copy to download a .loam-project.json file. It keeps document references, column names, filters, sorting and pane layout; explicit plain or spreadsheet-quoted input rules are kept in version 2 projects. Save edited TSV data separately: projects contain no data cells, restore no unsaved cell edits and grant no source-file access. Later, choose Open project and select the project file. Select a saved document, or use Choose source for that document to select its source again. Review source binding, then choose Open with reviewed columns. If the source or captured unsaved state differs, recover edited data separately or deliberately choose Open source and reset saved view. Cancel source binding keeps the current document. Projects allow up to 64 document references and 2 MiB of metadata. These steps describe the browser workspace; installed apps and extensions require their own host support.

How do plain and spreadsheet-quoted TSV differ?

Plain TSV treats quotes as text: tabs separate fields, and CR or LF end records. Spreadsheet-quoted TSV permits tabs and line breaks inside quoted fields and doubles literal quotes. Explicit rules keep raw first-record headers, correctly shaped empty records and string values. Every record must match the header width. Existing compatibility remains the default.

Can I change TSV rules after opening a file?

Open More document tools, expand TSV interpretation and choose different rules. The editor prepares and validates the accepted original file before replacing the document. Cancel keeps the current rules, edits and Undo history. A plain TSV field cannot contain a tab or line break; use Export spreadsheet-quoted copy to keep those values in a separate file.

Can I review the rules without losing selected files?

Yes. Explicit rules show a bounded preview before opening, merging or converting. Keep inputs for later retains the selection; choose different rules and review again. The preview covers at most 10 data records, 12 columns and 160 characters per value; the complete operation still validates the entire source.

Can I check TSV values with reusable column rules?

Open Validation in the editor, or expand Validate complete table inside the paged editor's Selection and replace tools. Check required values, literal types and exact allowed values across every edited source row, including filtered-out rows. Complete validation supports 100,000 data records, 2,000 columns, 2 million cells and column-rule checks, 64 MiB of table text and 1 MiB of encoded rules. Portable JSON settings require exactly matching header names and positions, followed by manual Use. The preview shows up to 1,000 issues; a separate CSV report includes every issue within 64 MiB. Checks run in a cancellable local worker with a 10-second deadline. Values and source-save state stay unchanged; original-file quoting is a separate check.

How can I read long or multiline TSV cells?

In Views, or Selection and replace for a paged source, open Cell text and choose Wrap text in taller rows. Row heights stay fixed so columns remain aligned; wrapping changes presentation only and preserves literal values, scroll, selection and Undo history. Selected-cell tools expose the complete value. The wrap preference stays local and is not included in version 1 portable projects.

Can I inspect the records behind a grouped or pivot summary?

In Analysis, select a summary value to inspect every contributing record in original source order, including rows hidden by filters. Page through the complete bounded result and read full values separately from abbreviated cells. A separate source-record report uses canonical UTF-8 text and is limited to 64 MiB. Loaded-table inspection supports up to 100,000 rows; paged complete scans may refuse when resource budgets cannot fit. Numeric conversion is explicit: loaded-table summaries use floating-point arithmetic, while paged summaries use exact decimal arithmetic. Reports do not save or modify the source.

What are the TSV file and export limits?

Ordinary viewing accepts one file up to 5 GiB, subject to browser capacity. Files of 8 MiB or larger use a paged editor. Batch CSV and JSON conversion accepts files up to 1 GiB, subject to available browser storage, with cells under 1 million characters, records under 4 million characters and up to 4,096 columns. Without browser file storage, results are limited to 32 MiB. Active-view editor exports require files under 8 MiB. Merge accepts 2 to 20 files with a 50 MiB combined limit.

Does my TSV file leave my browser?

Selection, parsing, editing, merging and conversion run locally without signup or file-content upload. Download a copy to keep your work. Reload restores the accepted original input and explicit input rules when browser entry storage is available; it does not save unsaved cell edits. Large inputs must be reopened. The paged editor offers its own revision-bound recovery journal; saved projects keep their explicit interpretation separate from source access.