Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Delimiters

Direct answer

CSV delimiters separate fields, normally a comma, but semicolons are common in European Excel exports and tabs in TSV. Fields containing the delimiter must be quoted.

When to use this

Use this when CSV files use unexpected separators.

First 30 seconds

1. Delimiters: comma, semicolon (EU Excel), tab.

2. Specify explicitly.

3. Quote fields containing delimiters.

4. Line endings (CRLF).

5. Document the format.

Operational verification

text → delimiter → fields

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
CSV interchange automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCSV interchange automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when CSV files use unexpected separators.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

The negative fixture should deliberately exercise risks such as encoding/BOM issues, delimiter/quoting ambiguity, duplicate keys, namespace drift, scalar coercion, invalid schema assumptions and parser success without consumer-valid semantics, choosing the cases most relevant to delimiter selection, quoting/escaping interaction, embedded delimiter/newline cases and parser dialect agreement.

Step 2 Common mistakes Narrow the fault
  • Assuming commas for Excel exports with ;.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Delimiters may be comma, semicolon or tab.
  • European Excel exports often use semicolons.
  • Fields containing the delimiter must be quoted.
Key checks
  • head -1 file.csv | cat -A — see delimiters/line endings
  • python3 -c 'import csv;print(csv.Sniffer().sniff(open("f.csv").read(2048)).delimiter)' — detect delimiter
  • Locale (semicolon in DK/EU Excel) — regional
ReferenceWhy it matters1 section · depth on demand

What it is

The delimiter separates fields: comma, semicolon (common in Danish/European Excel exports) or tab. Quote fields that contain the delimiter.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

The delimiter separates fields in a CSV file. Comma is the default, but semicolon is common in European locales (where comma is the decimal separator), and tabs are used in TSV files. Fields containing the delimiter, quotes or line breaks must be quoted.

import csv
with open("export.csv", newline="", encoding="utf-8-sig") as f:
    dialect = csv.Sniffer().sniff(f.read(2048)); f.seek(0)
    rows = list(csv.DictReader(f, dialect=dialect))
Import-Csv users.csv -Delimiter ';'
Export-Csv out.csv -Delimiter ';' -NoTypeInformation -Encoding utf8

Never split lines on commas manually — quoted fields such as "Oslo, floor 2" break naive parsing.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCSV interchange automation current

Authoritative/upstream documentation reviewed for bounded claims in CSV > Delimiters. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4180 · confidence 94%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For delimiter selection, quoting/escaping interaction, embedded delimiter/newline cases and parser dialect agreement, prefer typed fields and stable IDs over human presentation text.

Confirmation

Confirm action

Continue?