/ how to

How to import and export CSV files

Almost every web tool has an 'Export as CSV' or 'Import from CSV' button. Here's how to use them well, what to fix between platforms, and how to avoid the gotchas.

The basic workflow

  • Export the CSV from the source platform
  • Open it in OpenCSV to preview and edit
  • Clean it (deduplicate, fix headers, strip unused columns)
  • Download the cleaned CSV
  • Import into the destination platform

Common platforms — what to know

Shopify

Products export with very specific column headers (Handle, Title, Body HTML, Vendor, Type, Tags, etc.). Don't rename columns; Shopify is strict. Edit values only.

Mailchimp / Klaviyo

Audience exports include subscriber status. Strip out 'unsubscribed' and 'cleaned' rows before importing into a new tool, or you'll re-mail people who opted out.

Stripe

Customer and payment exports use UTC timestamps in ISO 8601 format. If you reimport these somewhere else, make sure the destination tool understands UTC.

Salesforce / HubSpot

CRM imports usually require a unique-ID column. Make sure your CSV has one (email is a common choice) before importing.

Excel / Google Sheets

Both will happily eat a CSV — but be careful saving back. Both can convert columns silently. If you only need to view or do simple edits, use OpenCSV instead.

Three classic gotchas

Encoding

If your source data has accented characters or emoji, save the CSV as UTF-8. Otherwise non-ASCII characters arrive at the destination as garbage ("Café" → "Café"). OpenCSV defaults to UTF-8.

Quoted fields with commas

If a value contains a comma (like an address), it must be wrapped in double-quotes. Most tools handle this automatically — but bad CSV exports sometimes break it. Open in a text editor to verify if rows look mis-aligned.

Hidden line breaks

A description field with newlines inside a single cell can break naive parsers. OpenCSV handles them; some platforms don't. If you see broken rows after import, search for line breaks in long-text columns and replace with spaces.

Pre-import checklist

  • Headers match what the destination expects
  • No duplicate rows on the unique-ID column
  • Encoding is UTF-8
  • No trailing empty rows
  • Column count is consistent across rows
  • Numbers, dates, and IDs aren't accidentally formatted
/ frequently asked

Frequently Asked Questions

  • A CSV file is a plain text file used to store tabular data in rows and columns, with values separated by commas. CSV stands for Comma-Separated Values. It's one of the simplest and most widely supported data formats in the world.

Open, edit, and share CSVs in seconds.

Free to view, $9.99/mo to edit. 14-day free trial.

Start 14-day free trial
/ desktop app

Make CSVs open in OpenCSV.

Install OpenCSV as a desktop app and it'll show up in your right-click "Open with…" menu for every CSV.