class Utilities method .parseCsv()

Utilities is the Apps Script service.

.parseCsv() is the method name you will see after a dot in your code.

What it does

Parses CSV text into a 2D array of values.

Why it's used

  • Turn pasted or fetched CSV into a 2D array for setValues.
  • Import upload content without manual splitting.

Common errors

  • Forgetting parentheses on parseCsv. Write Utilities.parseCsv(), not Utilities.parseCsv or parseCsv by itself.
  • Skipping dots between chained calls. Each step needs a dot, like Utilities.parseCsv().
  • Adding spaces where they do not belong. Write Utilities.parseCsv(), not Utilities .parseCsv(), Utilities.parseCsv (), or Utilities . parseCsv().
  • Wrong capitalization. Use Utilities and parseCsv, not utilities or parsecsv.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about Utilities.parseCsv().

Browse the blog