Free CSV Converter — Pixab AI
Convert CSV to Excel, JSON, TSV or HTML table. Auto-detects any delimiter. Paste or upload. Runs in your browser.
Drop images here, or click to browse
CSV, PLAIN, CSV · max 20 MB · single file only
How it works
- 1Upload a .csv file or paste CSV text directly into the text area — no file required for small datasets.
- 2The tool auto-detects the delimiter (comma, semicolon, tab, or pipe) and shows a data preview of the first 10 rows.
- 3If auto-detection is wrong, use the override dropdown to select the correct delimiter. Optionally adjust the quote character.
- 4Choose your output format: Excel (XLSX), JSON, TSV, or HTML Table. For JSON, pick array-of-objects or array-of-arrays.
- 5Download the converted file or copy the output to clipboard.
Frequently asked questions
What Is CSV and Why It Is Universal
CSV — Comma-Separated Values — is one of the oldest and most widely supported data formats in computing. A CSV file is simply a plain text file where each line represents a row of data and values within a row are separated by a delimiter (most commonly a comma). Despite being over fifty years old, CSV remains the most common format for data exchange between systems that would otherwise be incompatible.
Why CSV has survived. Unlike XML, JSON, or Parquet, CSV requires no parser library to read by eye. Open any CSV in a text editor and the structure is immediately obvious. It has no schema, no versioning, no backward-compatibility concerns. Every database (MySQL, PostgreSQL, SQLite, SQL Server, Oracle), every analytics tool (Power BI, Tableau, Looker, Excel), every programming language (Python, R, JavaScript, PHP), and every cloud service that ingests data supports CSV import. Nothing else has that reach.
The limitations of CSV. CSV has no standard for handling nested data (JSON handles this better), no native type system (dates and numbers are strings until a parser interprets them), and no support for multiple related tables in a single file (a database does this). It also has the awkward problem of how to handle commas inside field values, which leads to the quoting and escaping rules described below.
For the vast majority of flat tabular data — reports, exports, bulk uploads — CSV is the right format. If your data is hierarchical or relational, convert to JSON (use the JSON output tab) and validate or transform it with our JSON Formatter.
CSV Delimiter Types: Comma vs Semicolon vs Tab vs Pipe
The name "CSV" implies commas, but in practice many CSV files use other delimiters. Understanding why helps you work with data from different sources reliably.
Comma (,) — the default. Used by most English- language applications and exported by Google Sheets, Python's csv module, and the majority of SaaS tools. Works well unless your data contains commas (currency values, addresses, names like "Smith, John").
Semicolon (;) — European default. Many European versions of Excel default to semicolons because commas are used as decimal separators in European number formats (1.234,56 instead of 1,234.56). If you receive a CSV from a European colleague or ERP system and it opens as a single column in Excel, the delimiter is almost certainly a semicolon.
Tab (\t) — TSV files. Tab-separated values avoid the quoting problem entirely because tab characters rarely appear in field data. PostgreSQL's COPY command uses tab by default; many database export tools produce TSV files. Files with a .tsv extension almost always use tabs, but some .csv files do too.
Pipe (|) — database exports. The pipe character is used in some database export utilities (Oracle SQL*Loader, some COBOL-era systems) because it avoids conflicts with both commas and tabs. Less common today but still encountered in legacy data pipelines.
Pixab AI's CSV Converter auto-detects the delimiter by scanning the first line of your file and counting occurrences of each candidate character outside of quoted strings. If auto-detection gets it wrong (rare, but possible with unusual data), use the override dropdown to select the correct delimiter explicitly. Once converted, if you want to sort the rows, try our Sort Lines tool.
Opening CSV Files Correctly — Encoding Issues and BOM
CSV files are plain text, but text encoding can cause headaches — especially with international characters, non-Latin scripts, or files created on different operating systems.
UTF-8 vs UTF-8 BOM. UTF-8 is the standard encoding for CSV files. However, Microsoft Excel has historically expected a UTF-8 BOM (Byte Order Mark — the three bytes 0xEF 0xBB 0xBF at the start of the file) to recognise that a CSV uses UTF-8 rather than the system's legacy encoding. Files without a BOM may display special characters incorrectly when opened with older Excel versions, even though the file itself is valid UTF-8. Pixab AI's parser detects and strips the BOM automatically.
Windows-1252 and Latin-1. Files exported from older Windows applications may use Windows-1252 encoding rather than UTF-8. Characters like £, €, é, ü, and ñ will appear as garbled symbols if the wrong encoding is assumed. If your CSV contains accented characters that look wrong, the file is likely not UTF-8. Open it in a text editor that lets you re-save with UTF-8 encoding (e.g., Notepad++), then re-upload.
Quoted fields with embedded delimiters. Per RFC 4180, if a field value contains the delimiter character, a newline, or a double-quote, the entire field must be wrapped in double-quotes, and any embedded double-quotes must be doubled (i.e., '' becomes "" inside a quoted field). Our parser handles all of these cases correctly.
Line endings. Windows uses CR+LF (\r\n), Unix and macOS use LF (\n) alone. Our parser handles both transparently. Files with mixed line endings (common when a file has been edited on multiple platforms) are also handled correctly.
CSV vs Excel: When to Use Each
CSV and Excel serve different purposes. Choosing the right one for the task avoids conversion errors and data loss.
Use CSV when sharing data between systems. If you are importing data into a database, uploading customer records to a CRM, or providing a data export to a partner, CSV is almost always the right format. It has no dependency on specific software and can be processed by any programming language without a special library.
Use Excel when people need to work with the data. Excel's strength is the human interface — formulas, charts, conditional formatting, data validation dropdowns, and pivot tables make analysis interactive. If the recipient is a business analyst, finance team, or anyone who needs to explore the data rather than import it programmatically, send an XLSX.
Use CSV for version control. Git and other version control systems can meaningfully diff CSV files (they are plain text). XLSX files are binary ZIP archives — a diff shows only that the file changed, not what. If you are storing data in a repository, CSV is the correct format.
Use Excel for multi-sheet workbooks. CSV can represent only one table per file. If your data has multiple related sheets (a data sheet, a lookup table, and a summary), Excel keeps them together. Use our Excel Converter to export individual sheets to CSV when needed.
Use CSV for long-term archiving. XLSX files depend on the Open XML format specification and on applications that implement it. A CSV will still be readable in fifty years. For archiving datasets that need to outlast the software that created them, plain-text CSV is the responsible choice.
How the CSV Converter Works
Pixab AI's CSV Converter processes everything locally in your browser. No data is transmitted to any server at any point.
Delimiter detection. The tool scans the first 4096 characters of your file and counts occurrences of comma, semicolon, tab, and pipe characters that appear outside of quoted strings. The character with the highest count is assumed to be the delimiter. This heuristic is correct for the vast majority of real-world CSV files. If it guesses wrong, use the override dropdown.
Parsing. The parser implements the RFC 4180 specification: fields may be optionally quoted with double-quotes, embedded delimiters and newlines inside quoted fields are handled correctly, and doubled double-quotes are unescaped to a single quote. The UTF-8 BOM is stripped if present. Both CR+LF and LF line endings are normalised.
XLSX output. When the Excel output format is selected, SheetJS creates a new workbook in memory, converts the parsed rows to a sheet using aoa_to_sheet, and writes it as an XLSX binary. The output is immediately offered for download — nothing is stored.
JSON, TSV, and HTML output. These formats are generated from the parsed rows array without any additional library. JSON usesJSON.stringify, TSV joins cells with tab characters, and HTML wraps each row in <tr> and <td> tags. All output is immediately available for preview, copy, and download.
Keep going
Related Tools
Excel to CSV / JSON Converter
Convert Excel spreadsheets to CSV, JSON, TSV or HTML table
Word to HTML Converter
Convert Word DOCX files to clean HTML code
Sort Lines Online
Sort text lines alphabetically, numerically or by length — remove duplicates
Find and Replace Text
Find and replace text with regex support, case matching and bulk operations
Word to PDF Converter
Convert Word DOCX files to PDF documents in your browser
PDF Text Extractor
Extract all text from a PDF as plain text, with page structure preserved
Image Editor
Full-featured Photoshop-like image editor — layers, filters, brushes — free in your browser
PDF Password Protect
Add or remove password protection from PDF files