How to Create a CSV File on Mac

On a Mac you can create a CSV file three ways: export from Numbers, save from Excel, or write it in TextEdit (with one critical setting). Numbers is the fastest path for most users — it's free and ships with macOS.

Generate matching mock data right now

No sign-up, runs 100% in your browser, exports straight to CSV.

Using Numbers (recommended)

  1. Open Numbers and enter your data.
  1. File → Export To → CSV…
  1. Click Advanced Options, pick Unicode (UTF-8) for Text Encoding.
  1. Click Next, name the file, click Export.

Using TextEdit (watch the format)

TextEdit defaults to Rich Text Format (.rtf), which breaks CSV. Switch to plain text first: Format → Make Plain Text (or ⌘⇧T). Then type your CSV, File → Save, change extension to .csv, and uncheck "If no extension is provided, use .txt".

Using Terminal

printf 'name,email\nAda,ada@example.com\nGrace,grace@example.com\n' > people.csv

Frequently asked questions

Why does my Mac CSV open as gibberish in Windows Excel?

Encoding. Re-export from Numbers with Unicode (UTF-8) selected.

Can I email a CSV from iPhone?

Yes — Numbers on iPhone has the same Export → CSV option, and you can share directly to Mail or Messages.

Related guides

Start generating free mock CSVs

High-fidelity mock tables for tests, demos, or models. No sign-ups, completely local.