Kostenloser Text-zu-CSV-Konverter

Konvertieren Sie tabellarische Textdaten in das CSV-Format. Erkennt Trennzeichen automatisch, behandelt Anführungszeichen und ermöglicht eine Vorschau vor dem Download.

Ihre Daten verlassen Ihr Gerät nie

Über das CSV-Format

CSV (Comma-Separated Values) ist ein einfaches Textformat zur Speicherung tabellarischer Daten. Jede Zeile entspricht einem Datensatz, und Werte werden durch Kommas getrennt. CSV wird von Tabellenkalkulationen, Datenbanken und Datenanalyse-Tools breit unterstützt.

Warum in CSV konvertieren?

Häufige Fragen

Welche Trennzeichen unterstützt der Konverter?

Er erkennt automatisch Tabulator, Leerzeichen, Komma, Semikolon und Pipe. Sie können auch ein eigenes Ein-Zeichen-Trennzeichen festlegen.

Wie behandle ich Felder mit Kommas?

Aktivieren Sie die Option „Felder mit Komma in Anführungszeichen setzen", um sie in Anführungszeichen einzuschließen, was sie CSV-konform macht.

Kann ich Kopfzeilen einschließen?

Ja, aktivieren Sie die Option „Kopfzeile einschließen", wenn Ihre erste Zeile Spaltennamen enthält.

A short history of CSV, older than the spec that defines it

CSV is the format everyone uses and nobody owns. Its lineage is informal. The earliest documented usage of the comma-separated convention dates to 1972, when IBM Fortran (level H extended) supported list-directed input/output where commas served as separators between values on a line. Through the 1970s and 1980s, every database, spreadsheet, statistics package and accounting application that needed to swap data with another tool independently invented some variant of "values separated by some character on lines separated by some other character." There was no spec. There was no governing body. There was no canonical implementation. There was just consensus, in the loosest possible sense.

By the early 2000s, the cost of the chaos became impossible to ignore. The IETF eventually accepted a specification, RFC 4180, "Common Format and MIME Type for Comma-Separated Values (CSV) Files," published in October 2005 by Yakov Shafranovich. RFC 4180 is short, just a handful of pages, and it codified what most people had already converged on: a comma as field separator, double quote as the optional enclosure character for fields that contain commas or quotes or newlines, doubled double-quotes ("") as the way to escape a literal quote inside a quoted field, CRLF as the line terminator, and text/csv as the MIME type registered with IANA. The spec also defined an optional header parameter for the MIME type so a sender could tell a receiver whether the first line is a header row.

RFC 4180 is informational, not a strict standard. Compliance with it is voluntary. But it gives us a target, the closest thing CSV has to a definition of "correct." A later document, the W3C "Model for Tabular Data and Metadata on the Web" (CSVW, 2015), tried to extend the metadata story for CSV by attaching a JSON sidecar that says what each column is and how to interpret it. CSVW is widely cited and rarely deployed.

"CSV" in the wild doesn't mean what RFC 4180 says it means

Anyone who has had to receive a CSV from a stranger knows the shape of the problem. The disagreements break down along several axes:

The BOM trap

This deserves its own section because it's the single most common source of cross-platform CSV pain. Microsoft Excel will not auto-detect a UTF-8 encoded CSV unless the file begins with a UTF-8 byte order mark: the three bytes EF BB BF, which encode Unicode character U+FEFF. Without the BOM, Excel opens the file in the legacy code page of the user's Windows locale (Windows-1252 in the West, Shift_JIS in Japan, GBK in mainland China). Any non-ASCII character (accented letters, currency symbols, emoji, CJK characters) is mangled.

The fix is to prepend the BOM. The cost is that everything else chokes on it. Apple Numbers (until recent versions) shows the BOM as a literal character in the first cell. Many command-line tools (awk, cut, older sed) treat the BOM as part of the first field, so a header that should read name reads name. Most JavaScript CSV parsers strip it; many older Python csv-module workflows don't (you have to open the file with the utf-8-sig codec). Since a free online tool can't know where the user will open the file, omitting the BOM and documenting that Excel users should use Data → From Text/CSV (which always lets the user pick UTF-8 explicitly) is a reasonable default.

Excel ships at least four "CSV" formats

Excel's "Save As" dialog offers more than one CSV variant, and the differences matter:

The user-facing label says "CSV" four different ways. The actual file content is materially different. This is the practical reality the converter operates inside.

Why convert text → CSV, specifically

Most online "CSV tools" run the inverse direction: take a CSV, emit something else (JSON, an HTML table, a SQL INSERT, a printable PDF). This one runs the opposite: take messy text, produce clean CSV. That's the use case for:

Excel will rewrite your data, sometimes silently

A handful of CSV foot-guns bite even careful users:

Where this tool fits among CSV's modern alternatives

CSV survives because it's text and humans can read it. For serious data interchange, several formats have eaten its lunch on specific dimensions:

For a free online converter aimed at developers and office workers, CSV remains the right output format because it's the lingua franca of data import everywhere. Modern alternatives exist; they have not displaced CSV in the inbox.

More questions

Should I add a UTF-8 BOM to the output?

If the file is destined for Excel double-click on Windows, yes, without the BOM, Excel opens it in the legacy code page and mangles non-ASCII text. If it's destined for anything else (Apple Numbers, command-line scripts, web upload forms), omit the BOM. The safest path is to omit the BOM and instruct Excel users to import via Data → From Text/CSV, where they can choose UTF-8 explicitly.

My CSV opens with one cell per row in Excel, what went wrong?

Almost always a separator mismatch. You're in a locale where Excel expects semicolons (most of continental Europe), but the file uses commas, or vice versa. Open with Data → From Text/CSV instead of double-clicking; that wizard lets you choose the delimiter explicitly. Or save the file from Excel's Save As menu using the variant matching your local separator.

What's the difference between TSV and CSV?

TSV uses tab characters as the separator instead of commas, with its own MIME type text/tab-separated-values and IANA registration. The advantage of TSV is that real-world data rarely contains literal tabs, so quoting is almost never needed; the disadvantage is that tabs are invisible in text editors and copy-paste behaviour varies. CSV's quoting machinery makes it safe for fields that contain the delimiter; TSV mostly avoids the problem entirely.

Is there a CSV linter I can run before sharing my file?

Yes, for command-line use, csvkit's csvclean reports rows with the wrong number of columns. Frictionless Data's frictionless CLI validates against an optional schema. For browser-based work, PapaParse reports parse errors line-by-line. Strict validation against RFC 4180 (CRLF line endings, doubled-quote escaping) is rare in practice; most parsers accept any of the common variants.

Verwandte Tools