CSV File Creator & Editor
Create, edit, and export RFC 4180 compliant CSV files directly in your browser. Features custom delimiters, instant exporting, and local autosave.
About
The Comma-Separated Values (CSV) format remains the ubiquitous standard for tabular data exchange across disparate systems, databases, and analytical tools. However, formatting inconsistencies - such as unescaped delimiters within fields, improper quote handling, or mismatched character encodings - frequently lead to data corruption during ingestion pipelines.
This application provides a strictly RFC 4180 compliant client-side environment for constructing and editing tabular datasets. It programmatically guarantees that complex field values containing structural characters (newlines, quotes, or chosen delimiters) are correctly escaped and enclosed before serialization. By operating entirely within the browser utilizing the Blob API, it eliminates the necessity for heavy spreadsheet software while ensuring absolute data privacy and immediate asset generation.
Formulas
The core serialization logic adheres to a deterministic state model to ensure parser compatibility. The algorithm processes each cell ci,j in the dataset matrix M before concatenating them into the final file payload.
Condition for Enclosure (E):
E = V.contains(Delimiter) ∨ V.contains(\n) ∨ V.contains(EnclosureChar)
This process guarantees that a value like "Smith, John" in a comma-delimited file is safely serialized as ""Smith, John"" (if enclosed) rather than splitting into two separate adjacent columns.
Reference Data
| Configuration | Standard Value | Description | Risk Factor if Incorrect |
|---|---|---|---|
| Delimiter | , (Comma) | Separates individual columns within a row. | Data merges into a single column; structural failure. |
| European Delimiter | ; (Semicolon) | Often used in locales where the comma is the decimal separator. | Parsing errors in standard US/UK configured parsers. |
| TSV Delimiter | \t (Tab) | Used in Tab-Separated Values, highly resistant to internal commas. | Whitespace stripping by IDEs can corrupt columns. |
| Enclosure Character | " (Double Quote) | Wraps fields that contain delimiters, newlines, or quotes themselves. | Truncated or fragmented data records. |
| Escape Mechanism | "" (Doubled) | Internal quotes must be doubled to be treated as literal characters. | Premature termination of the enclosure context. |
| Line Terminator | \r\n (CRLF) | Standard RFC 4180 row separator. | Data concatenated into a single unbroken row. |
| MIME Type | text/csv | Standard internet media type for HTTP/Email transfer. | File recognized as plain text or binary blob. |
| Encoding | UTF-8 | Standard universal character encoding without BOM (Byte Order Mark). | Corrupted multi-byte characters (e.g., emojis, accents). |