FormatterHQ

CSV & TSV Tools

View, convert and clean up CSV and TSV files and spreadsheet data. Turn tables into JSON, SQL, HTML or Markdown, and back again.

Base64 to CSV Decode a Base64 string back to CSV with syntax highlighting. Base64 to TSV Decode a Base64 string back to TSV with syntax highlighting. Compare CSV Files Compare two CSV files by key column or row position: see added, removed and changed rows with old and new values, then export the differences. CSV Converter Convert CSV to JSON, XML, YAML, TSV, HTML, SQL or Markdown from a single page, with automatic delimiter detection. CSV Editor Online Edit CSV files online like a spreadsheet: change cells, add, move or delete rows and columns, sort, filter, find and replace, undo, then export. CSV Escape CSV escape online: convert special characters into escape sequences so text is safe inside CSV. CSV Splitter Split a CSV file every N rows, into equal parts or by the values of a column. The header is kept in every file; download parts or one ZIP. CSV to Base64 Convert CSV to a Base64 string online. UTF-8 safe; paste text or upload a .csv file. CSV to Excel Converter Convert CSV to Excel online for free. Download a real .xlsx workbook generated in your browser. CSV to HTML Table Converter Convert CSV to HTML online for free. Get clean table markup with a live preview. CSV to JSON Converter Convert CSV to JSON online for free. Get formatted JSON with types detected automatically. CSV to Multi-line Data Converter Convert CSV to Multi-line Text online for free. Every value on its own line, record by record. CSV to PDF Converter Convert CSV to a printable PDF table: header row on every page, fitted and wrapped columns, A4, Letter or Legal, page numbers. Made in your browser. CSV to SQL Converter Convert CSV to SQL online for free. CREATE TABLE and INSERT statements with escaped values. CSV to TSV Converter Convert CSV to TSV online for free. Paste the result straight into a spreadsheet. CSV to XML Converter Convert CSV to XML online for free. Attributes, arrays and root element are configurable. CSV to YAML Converter Convert CSV to YAML online for free. Clean, readable YAML with configurable indentation. CSV Unescape CSV unescape online: turn escaped sequences back into readable plain text instantly. CSV Viewer View CSV files as a clean, sortable-looking table in your browser. Auto-detects commas, semicolons, pipes and tabs. Delimited Text Extractor Extract one or more columns from CSV, TSV, pipe or any delimited text by column number. Excel to CSV Converter Convert Excel to CSV online for free. Nested data is flattened into columns. Excel to HTML Table Converter Convert Excel to HTML online for free. Get clean table markup with a live preview. Excel to JSON Converter Convert Excel to JSON online for free. Get formatted JSON with types detected automatically. Excel to XML Converter Convert Excel to XML online for free. Attributes, arrays and root element are configurable. Excel Viewer Open and view Excel (.xlsx, .xls), OpenDocument (.ods) and CSV spreadsheets online without Excel. Sheet tabs, merged cells and JSON tree. HTML Table to CSV Converter Convert HTML to CSV online for free. Nested data is flattened into columns. HTML Table to TSV Converter Convert HTML to TSV online for free. Paste the result straight into a spreadsheet. JSON to CSV Converter Convert JSON to CSV online for free. Nested data is flattened into columns. JSON to Excel Converter Convert JSON to Excel online for free. Download a real .xlsx workbook generated in your browser. JSON to TSV Converter Convert JSON to TSV online for free. Paste the result straight into a spreadsheet. LaTeX Table Generator Convert CSV, spreadsheet cells or JSON into LaTeX tabular code with captions, labels, borders or booktabs styling. Markdown Table Generator Generate GitHub-flavoured Markdown tables from CSV, TSV, Excel cells or JSON, with column alignment and neat padding. Merge CSV Files Merge several CSV files into one: match columns by header name or position, add the source file name, remove duplicate rows. Runs in your browser. Random CSV Generator Generate realistic fake CSV test data — names, emails, addresses, dates and more — with custom fields. Random TSV Generator Generate realistic fake TSV test data — names, emails, addresses, dates and more — with custom fields. SQL to CSV Converter Convert SQL to CSV online for free. Nested data is flattened into columns. Table to HTML Converter Convert CSV, TSV, Markdown or JSON data into a clean HTML table with optional CSS styling and a live preview. Tableizer: Excel to HTML Table Paste cells copied from Excel or Google Sheets and get a styled HTML table. Choose header colour, font and row striping. TSV to Base64 Convert TSV to a Base64 string online. UTF-8 safe; paste text or upload a .tsv file. TSV to CSV Converter Convert TSV to CSV online for free. Nested data is flattened into columns. TSV to JSON Converter Convert TSV to JSON online for free. Get formatted JSON with types detected automatically. XML to CSV Converter Convert XML to CSV online for free. Nested data is flattened into columns. XML to Excel Converter Convert XML to Excel online for free. Download a real .xlsx workbook generated in your browser. XML to TSV Converter Convert XML to TSV online for free. Paste the result straight into a spreadsheet. YAML to CSV Converter Convert YAML to CSV online for free. Nested data is flattened into columns. YAML to Excel Converter Convert YAML to Excel online for free. Download a real .xlsx workbook generated in your browser.

CSV tools for moving tabular data between systems

CSV (comma-separated values) and TSV (tab-separated values) are the simplest way to move tables between spreadsheets, databases, analytics tools and code. They are also full of traps: commas inside quoted fields, different delimiters in different countries, byte order marks, inconsistent line endings and encoding problems. These CSV tools handle those details so you can focus on the data.

Find the right CSV tool

  • Look at a file – the CSV viewer displays delimited text as a table with headers, so you can check columns before importing anything.
  • Open a spreadsheet – the Excel viewer reads .xlsx, .xls and .ods files without Office.
  • Feed an API or app – CSV to JSON turns rows into objects keyed by column headers.
  • Load a database – CSV to SQL generates CREATE TABLE and INSERT statements.
  • Publish a table – CSV to HTML creates table markup, and the Markdown table generator produces tables for READMEs.
  • Switch delimiters – CSV to TSV and TSV to CSV convert between the two with correct quoting.
  • Go back to Excel – CSV to Excel and JSON to CSV help when data arrives in other shapes.

Common workflows

Importing a spreadsheet into an app: export the sheet as CSV, check it in the viewer (are the headers right, are there empty trailing rows?), then convert it to JSON or SQL. Checking first saves you from importing a column shifted by a stray comma.

Sharing data in documentation: convert a small CSV extract into a Markdown or HTML table instead of pasting a screenshot, so the values stay searchable and accessible.

Test data: the random CSV generator creates realistic fake rows for testing your import code.

When CSV is not enough

CSV has no types, no nesting and no standard for dates or encodings. When data has hierarchy, such as orders with line items, JSON or XML represents it better. When you need formulas, formatting or several sheets, keep the file in a spreadsheet format and use CSV only for the exchange step.

CSV pitfalls to watch for

  • Quoted fields – values containing commas, quotes or line breaks must be wrapped in double quotes, and inner quotes doubled (RFC 4180).
  • Semicolons – in many European locales, Excel saves "CSV" with semicolons because the comma is the decimal separator.
  • Encoding – use UTF-8. If accented characters look garbled in Excel, import via the Data tab and choose UTF-8.
  • Leading zeros – spreadsheet apps drop them from ZIP codes and IDs unless the column is imported as text.

Conversions run in your browser, so customer lists and financial exports stay on your computer.

Frequently asked questions

What is the difference between CSV and TSV?
Both store tables as plain text. CSV separates fields with commas and needs quoting for values that contain commas; TSV uses tab characters, which rarely appear in data, so quoting is seldom needed.
How do I convert CSV to JSON?
Use the CSV to JSON converter. The first row becomes the keys, and every following row becomes an object in a JSON array.
Why does my CSV open in a single column in Excel?
Excel expected a different delimiter, often a semicolon in European locales. Import the file through the Data tab and choose the comma as delimiter.
Can I convert Excel files directly?
Yes. Converters such as Excel to CSV and Excel to JSON read .xlsx files, and the Excel viewer shows every sheet.