Skip to content

Free · Browser-local tools

Format a CSV file

Choose CSV delimiters and line endings. Preview normalized quoting and download a formatted copy while preserving cell values.

Format CSV

Start with your CSV

Open your file in the CSV editor with this tool already selected. Preview the result before downloading.

  1. Open or paste your CSV.
  2. Choose delimiter and Windows or Unix/macOS line endings.
  3. Inspect normalized quoting, then copy or download the complete output.

Free · No signup · File contents stay in your browser. Open files up to 1 GiB with browser storage.

Try a small example

3 records · 3 columns
Illustrative CSV sample data
idnameamount
1Example one12
2Example two24
3Example three18

Semicolon-delimited output

id;name;amount
1;Example one;12
2;Example two;24
3;Example three;18

Illustrative fictional data. Open the sample to try the tool.

How to format csv

  1. 1

    Open or paste your CSV.

  2. 2

    Choose delimiter and Windows or Unix/macOS line endings.

  3. 3

    Inspect normalized quoting, then copy or download the complete output.

What to expect

Changes serialization while preserving cell text and leading zeros. Tab-delimited output downloads as TSV; the preview is bounded while copied/downloaded output is complete.

Local files and clear limits

These tools process file contents on your device. The browser workspace accepts files up to 1 GiB and 5 million records, subject to available browser storage and decoded-record limits. This tool's calculations support up to 100,000 records, 2 million cells and 64 MB of text. Download a new copy to keep your result.

Plain answers

Format CSV questions

What can I do with this format csv tool?

Changes serialization while preserving cell text and leading zeros. Tab-delimited output downloads as TSV; the preview is bounded while copied/downloaded output is complete.

Does my CSV leave my device?

File selection, editing and these task operations run in your browser. Optional recipe assistance, when available, sends your goal and only the column metadata or sample values you explicitly include to its configured provider. Your file is not attached automatically; see Privacy for processing details. Manual editing requires no account or file upload. Download a new copy to keep your result; refreshing restores the original input, not unsaved edits.

How do I change separators without changing cell values?

Open your file on this page to enter the editor with Format CSV selected. Choose Comma, Semicolon, Tab or Pipe under Delimiter, then Windows (CRLF) or Unix/macOS (LF) under Line endings and choose Preview result. Quoting is automatic: a value containing the chosen separator, a quote or a line break is quoted, and embedded quotes are doubled. For example, choosing Semicolon keeps identifier 00123 unchanged and writes the value Tray; small as "Tray; small" so it remains one cell. The preview shows the first 6,000 characters; Copy complete output and Download CSV include the entire edited document, including hidden rows in the current source order. Tab output uses Download TSV. The separate UTF-8 copy can change quoting, encoding and record separators; it does not trim values, apply changes to the open table or overwrite the original file. Changing the document or format choices requires a fresh preview. This browser task supports 100,000 records, 2 million cells and 64 MB of decoded text; installed apps and extensions need their own host support.

Do the editor and task have the same file limits?

The editor opens files up to 1 GiB and 5 million records, subject to browser storage and decoded-record limits. This task supports up to 100,000 records, 2 million cells and 64 MB of decoded text.

Other ways to work with your CSV

Use these local examples when you prefer a script or SQL. They create separate results and explain where their behavior differs from this browser tool.

Change a CSV delimiter with Python

Writes semicolon-delimited UTF-8 text with LF record endings and automatic quoting. Cell text is retained; encoding, quoting and record endings may change.

Before you start

  • Python 3.10 or later. Run in a working folder with a backup of your source; output files may be replaced unless opened in exclusive mode.
  • Place input.csv in that folder. Examples use UTF-8, a comma delimiter and a header row. Column-specific recipes use id,label,amount,status,note; adapt names to your file.
Run the complete Python example
python3 - <<'PY'
import csv

with open("input.csv", encoding="utf-8-sig", newline="") as source:
    table = list(csv.reader(source, strict=True))
if not table:
    raise ValueError("Expected a header row")
headers, rows = table[0], table[1:]
if any(len(row) != len(headers) for row in rows):
    raise ValueError("Every record must match the header width")

with open("output.csv", "w", encoding="utf-8", newline="") as target:
    writer = csv.writer(target, delimiter=";", lineterminator="\n")
    writer.writerow(headers)
    writer.writerows(rows)
print("Wrote semicolon-delimited UTF-8 output.csv")
PY

Limits and output

  • CSV has no stored type schema. Python keeps fields as strings until an example explicitly converts a value. These recipes do not add spreadsheet formula protection; import sensitive-looking strings as text in spreadsheets.
  • This recipe retains the parsed table in memory; use a streaming approach for files that do not fit.

Documentation: Python CSV reader and writer

Use DuckDB for CSV format

Run SQL locally with the DuckDB command line. Read fields as text, then cast only the columns used in calculations.

Before you start

  • Install the DuckDB command-line client using its official installation guide.
  • Run beside input.csv. Named-column examples expect id,label,amount,status,note.
Run DuckDB SQL
duckdb <<'SQL'
CREATE VIEW source AS SELECT * FROM read_csv('input.csv', header = true, all_varchar = true, force_not_null = ['id', 'label', 'amount', 'status', 'note']);
COPY source TO 'duckdb-output.csv' (HEADER, DELIMITER ';');
SQL

Limits and output

  • Adapt column names and casts to your input. DECIMAL(18,4) rounds to four fractional digits; values outside its range become NULL with TRY_CAST. SQL output order is not promised without ORDER BY; equal sort keys need an explicit tie-breaker for a deterministic order.
  • These recipes write ordinary CSV without spreadsheet formula protection.

Documentation: DuckDB CSV options and installation; DuckDB COPY export