Skip to content
faker.tools
All 79

Plate IV · Developer, API & Database Seeding Utilities

CSV & TSV Dataset Generator

Delimiters, quoting, line endings and BOM — all the things that break imports.

csv
id,fullName,email,city,isActive,createdAt
1,Alice Young,alice.young@example.com,Boise,true,2025-11-16T23:15:18Z
2,Ryan Lopez,ryan.lopez@example.com,Brooklyn,true,2026-01-24T23:15:18Z
3,Linda Anderson,linda.anderson@example.com,Savannah,false,2026-02-05T23:15:18Z
4,Iris Martin,iris.martin@example.com,Portland,true,2024-02-24T23:15:18Z
5,Thomas Moore,thomas.moore@example.com,Boise,true,2025-05-21T23:15:18Z
6,Patricia Smith,patricia.smith@example.com,Portland,true,2025-12-27T23:15:18Z
7,Margaret Garcia,margaret.garcia@example.com,Boise,false,2026-04-04T23:15:18Z
8,Elijah Williams,elijah.williams@example.com,Austin,false,2026-04-29T23:15:18Z
9,Jason Hill,jason.hill@example.com,Savannah,true,2026-06-11T23:15:18Z
10,Jason Davis,jason.davis@example.com,Savannah,true,2025-10-25T23:15:18Z
11,Eric Lopez,eric.lopez@example.com,Boise,true,2026-02-13T23:15:18Z
12,Sarah Hernandez,sarah.hernandez@example.com,Chicago,true,2024-07-15T23:15:18Z
13,Sarah Allen,sarah.allen@example.com,Chicago,true,2026-07-12T23:15:18Z
14,Joseph Williams,joseph.williams@example.com,Brooklyn,true,2025-01-07T23:15:18Z
15,Lisa Lewis,lisa.lewis@example.com,Austin,true,2025-12-17T23:15:18Z
16,Elijah Moore,elijah.moore@example.com,Portland,true,2024-07-22T23:15:18Z
17,Jennifer Torres,jennifer.torres@example.com,Boise,true,2025-07-24T23:15:18Z
18,Jessica Martinez,jessica.martinez@example.com,Chicago,true,2026-02-10T23:15:18Z
19,Michael Martinez,michael.martinez@example.com,Portland,true,2025-01-20T23:15:18Z
20,Elijah Flores,elijah.flores@example.com,Boise,true,2025-07-06T23:15:18Z
21 lines · 1.5 KBGenerated in your browser · CSV & TSV Dataset Generator

CSV import bugs are almost never about the data. They are about a comma inside a quoted field, a CRLF where an LF was expected, or a missing BOM that turns Renée into Renée in Excel. All three are controls here.

What you can control

  • Four delimiters, including semicolon for locales where the comma is a decimal separator.
  • Quote-everything mode, for importers that cannot handle selective quoting.
  • CRLF line endings for Windows tooling that still expects them.
  • The UTF-8 BOM toggle is the single fix for Excel mangling accented characters.

What this is not

Values containing the delimiter, a quote or a newline are quoted and escaped per RFC 4180. If your importer does not follow that spec, the file is correct and the importer is not.

Questions

Why does Excel mangle my accented characters?

Excel assumes the system codepage unless the file starts with a UTF-8 byte order mark. Turn the BOM on and the accents survive.

When should I use semicolons?

In locales where the comma is the decimal separator — most of continental Europe. Excel there defaults to semicolon-delimited files.

How are embedded commas handled?

The field is wrapped in double quotes, and any quote inside it is doubled. That is RFC 4180, which nearly every parser implements.

Next in Developer

All 11