CSV ↔ PSV Converter
Convert CSV (comma-separated) files to PSV (pipe-separated |) and vice versa, with quote and newline handling.
Saída:
—
CSV to PSV, when the comma gets in the way
PSV is CSV with a pipe in place of the comma. It exists for a practical reason: text data is full of commas — addresses, descriptions, decimal values in many locales — and each one forces the field into quotes. Switching the separator to a character that almost never appears in content makes the file far more readable and cuts the chance of an import going wrong.
The page converts both ways, so it serves both for producing the pipe-separated file and for bringing back a PSV received from another system. The reader understands the full CSV rules, so a quoted field containing a comma is read as one value, doubled quotes become a literal quote, and a line break inside a quoted field does not split the record. On output, a field is only quoted when it contains the new separator, a quote or a line break — which in practice leaves almost everything unquoted.
PSV turns up regularly in banking and ERP integrations, and in mainframe exports, where the pipe is a long-standing convention. Keep in mind there is no formal specification for the format: the agreement about quoting and escaping varies from system to system, so confirm with the destination documentation whether it expects quotes in any particular case.
Frequently asked questions
Why not use a semicolon?
Does Excel open PSV?
What if the content contains a pipe?
Related Tools
CSV ↔ NDJSON
Two-way conversion between CSV and NDJSON (Newline Delimited JSON), preserving numeric types when detected.
JSON Lines → CSV
Convert JSONL (NDJSON) file to CSV, deriving headers from the union of all observed object keys.
CSV → JSON Lines
Convert CSV to JSONL (one JSON object per line). Common format in logs, ML pipelines and document databases.
CSV to JSON
Convert CSV to JSON. The first row becomes object keys, the rest become array items. Supports separators , ; and \t. Auto-detects numbers and booleans. Everything in your browser.
CSV ↔ vCard (.vcf) Batch Converter
Converts a CSV contact list into a multi-contact vCard (.vcf) file and back to CSV, with column mapping and vCard 3.0/4.0 output.
Fixed-Width ↔ CSV/JSON Converter
Converts fixed-width text files to CSV, TSV or JSON and back, with automatic column detection, a position map and per-line warnings.