Strict mode
Use strict mode for monthly exports from the same system. It stops before output when any header or column order differs.
Choose two or more TSV files, then require identical ordered headers or build a predictable first-seen union.
Keeps the existing behavior of this tool. Converter headers are trimmed and renamed when blank or duplicated; trailing empty records are omitted. The editor and XLSX converter retain their existing header behavior.
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.
Strict requires matching headers. Ordered union includes each encountered column.
Use strict mode for monthly exports from the same system. It stops before output when any header or column order differs.
Union mode keeps the first file’s columns, appends new columns as they appear, and fills missing fields with empty text.
For repeat jobs, use Python or SQL on your computer. Choose an example below for setup, code and output details.
Writes merged.tsv with one header, then every data record from input.tsv followed by second.tsv.
import csv
paths = ["input.tsv", "second.tsv"]
columns = None
all_rows = []
for path in paths:
with open(path, encoding="utf-8-sig", newline="") as source:
reader = csv.reader(source, delimiter="\t", strict=True)
header = next(reader)
if columns is None:
columns = header
elif header != columns:
raise ValueError("Headers must match in name and order")
for row in reader:
if len(row) != len(columns):
raise ValueError("Each record must match the header width")
all_rows.append(row)
with open("merged.tsv", "w", encoding="utf-8", newline="") as result:
writer = csv.writer(result, delimiter="\t")
writer.writerow(columns)
writer.writerows(all_rows)Documentation: Python csv reader, writer and dialects
Append files by header name using a column union. This is different from the Python example's strict identical-header check.
COPY (
SELECT * FROM read_csv(['input.tsv', 'second.tsv'],
delim='\t', header=true, all_varchar=true,
force_not_null=['id','note'], union_by_name=true)
) TO 'merged.tsv' (FORMAT CSV, DELIMITER '\t', HEADER true);Documentation: DuckDB installation; DuckDB CSV options; DuckDB COPY exports
Create a separate output using ClickHouse locally. These SQL copies are sorted by id and note, rather than preserving physical source order.
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;
CREATE TEMPORARY TABLE data AS SELECT * FROM file('input.tsv', 'CSVWithNames', 'id String, note String');
INSERT INTO data SELECT * FROM file('second.tsv', 'CSVWithNames', 'id String, note String');
SELECT * FROM data ORDER BY id, note
INTO OUTFILE 'merged.tsv' FORMAT CSVWithNames;
SQLDocumentation: ClickHouse installation; ClickHouse local; ClickHouse CSVWithNames
Choose 2 to 20 files, up to 50 MiB combined. Strict mode requires identical ordered headers. Ordered union keeps first-seen columns and fills missing fields with empty text. Files are appended in order, not joined by a key.
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.
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.
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.
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.
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.
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.
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.
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.