CSV Formatter

Rewrite a CSV file so it is consistent and easy for other software to read. Choose the separator, whether to quote only where needed or every cell, and Windows or Unix line endings; trim spaces around cells, pad short rows so every row has the same number of columns, remove blank lines, and add the UTF-8 marker Excel needs to show Hindi and other Indian scripts and the rupee sign correctly. Copy the result or download it. It runs in your browser.

Your data
What to do

Everything runs in your browser. Your files never leave this device.

Features

  • Quote only where needed, or around every cell

  • Comma, semicolon, tab or pipe separator

  • Windows (CRLF) or Mac and Linux (LF) line endings

  • Trim spaces around cells

  • Pad short rows so every row is as wide as the widest

  • Remove blank lines

  • Optional UTF-8 marker so Excel shows ₹ and Indian scripts correctly

  • Runs in your browser: your data is never uploaded. Free, no signup

Why format a CSV

Strict importers

Some systems need every field quoted, or exactly the same number of columns in every row.

Hindi and regional-language data

Excel can show Devanagari, Tamil and other scripts as garbled text without the UTF-8 marker; add it here.

Version control and scripts

LF line endings and consistent quoting give clean diffs in Git.

Formatting options

Quoting

Only where needed quotes cells that contain the separator, quotes, line breaks or leading or trailing spaces. Around every cell suits importers that expect every field quoted.

Excel and UTF-8

Excel on Windows guesses a file's encoding. The UTF-8 marker (BOM) tells it the file is UTF-8, so ₹, é and Indian scripts display correctly. Leave it off for databases and code.

Other tasks on the same page

The same page also analyzes columns, finds missing values and duplicates, cleans, sorts and filters, splits and merges columns, draws charts, converts separators, validates and formats CSV: pick a task above the result.

Related tools

CSV Formatter - FAQ