class Utilities method .newBlob()

Utilities is the Apps Script service.

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

What it does

Creates a blob object from text or binary data.

Why it's used

  • Package text or bytes to attach to email or save to Drive.
  • Build files in memory before upload.

Common errors

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

Explore

Related methods

Better Sheets tutorials

Fast FAQS

Fast FAQS

New Tool for you: Fast FAQs. Create a quick 10 question FAQ for any new ...
Password Protecting Data In a Google Sheet

Password Protecting Data In a Google Sheet

A funky way to password protect some data in a sheet, 3 ways to do it: w...
Password Protecting Data In a Google Sheet Part 2 The Basics

Password Protecting Data In a Google Sheet Part 2 The Basics

Covering some of the basics I skipped over in the part 1 video.
Shaman: AI Blog Writer

Shaman: AI Blog Writer

I will introduce you to the power of AI writing in Google Sheets using a...

Related blog posts

Written guides about Utilities.newBlob().

Browse the blog
Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.Plan all of 2027 on one Google Sheet, free.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.