{"id":23217,"date":"2023-07-21T00:20:52","date_gmt":"2023-07-21T00:20:52","guid":{"rendered":"https:\/\/www.gmass.co\/blog\/?p=23217"},"modified":"2026-02-13T19:17:27","modified_gmt":"2026-02-13T19:17:27","slug":"google-sheets-formatting-html","status":"publish","type":"post","link":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/","title":{"rendered":"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)"},"content":{"rendered":"<p>If you didn\u2019t know, Google Sheets allows you to format pieces of text inside a cell.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image13-1.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image13-1.png\" alt=\"Google Sheets formatting on individual pieces of text\" width=\"1572\" height=\"926\" \/><\/a><\/figure>\n<p>However, that formatting is trapped inside Google Sheets. It might work if you copy and paste it some places, but most of the time, you\u2019ll get plain text.<\/p>\n<p>And if you do a straight up mail merge in GMass\u2026<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image5-2.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image5-2.png\" alt=\"Trying to mail merge formatted text\" width=\"1568\" height=\"964\" \/><\/a><\/figure>\n<p>\u2026you\u2019ll get the text from the cell but you won\u2019t get the formatting.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image11-1.png\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image11-1.png\" alt=\"The formatting doesn't work\" width=\"1636\" height=\"974\" \/><\/a><\/figure>\n<p>But <strong>GMass <\/strong><em><strong>is<\/strong><\/em><strong>\u00a0absolutely capable of using rich formatting with mail merge<\/strong>\u00a0\u2014 as long as that rich formatting comes in the form of HTML tags.<\/p>\n<p>So if you want to merge in some bolded text, it will need to be wrapped in <code>&lt;b&gt;&lt;\/b&gt;<\/code> tags or <code>&lt;strong&gt;&lt;\/strong&gt;<\/code> tags.<\/p>\n<p>And I\u2019d never make you do that manually.<\/p>\n<p><strong>Google Sheets doesn\u2019t have a native function to detect the formatting in a cell and convert it to HTML.<\/strong>\u00a0But with a <a href=\"https:\/\/developers.google.com\/apps-script\/guides\/sheets\">Google Apps Script<\/a>, you can.<\/p>\n<p>In this guide, I\u2019ll walk you through <strong>setting up a Google Apps Script that will automatically convert your formatted Google Sheets content into HTML<\/strong>\u00a0\u2014 which you can then use in <a href=\"https:\/\/www.gmass.co\/gmail-mail-merge\">Gmail mail merge<\/a>\u00a0campaigns with GMass.<\/p>\n<h2 id=\"google-sheets-format-aiik\">Google Sheets Formatting to HTML: Table of Contents<\/h2>\n<ul>\n<li><a href=\"#step-1-prepping-your-leeq\">Step 1: Prepping Your Google Sheet<\/a><\/li>\n<li id=\"step-1-prepping-your-leeq\"><a href=\"#step-2-adding-the-go-sxha\">Step 2: Adding the Google Apps Script<\/a><\/li>\n<li><a href=\"#step-3-using-your-fo-nwua\">Step 3: Using Your Formatted Text in a GMass Campaign<\/a><\/li>\n<li><a href=\"#getting-started-with-vykw\">Getting Started with GMass<\/a><\/li>\n<\/ul>\n<h2>Step 1: Prepping Your Google Sheet<\/h2>\n<p>The first step in this process is making sure you have a Google Sheet that\u2019s ready for a GMass campaign and prepped for you to convert its formatting to HTML.<\/p>\n<p>That means:<\/p>\n<ul>\n<li>You have a <strong>column of email addresses<\/strong>\u00a0somewhere in the Google Sheet<\/li>\n<li>You have an <strong>empty column next to your column of formatted text<\/strong>. If you don\u2019t want to have to edit the Google Apps Script I\u2019ve shared later in this article, call your column with the formatted text in it <strong>RichText<\/strong>\u00a0and the empty column <strong>HTMLText<\/strong>.<\/li>\n<\/ul>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image19.png\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image19.png\" alt=\"Create two columns in your Google Sheet for the text\" width=\"1840\" height=\"1224\" \/><\/a><\/figure>\n<h3 id=\"what-formatting-can-rjke\">What formatting can you use?<\/h3>\n<p>The Google Apps Script\u00a0I wrote <strong>can detect the following formatting<\/strong>\u00a0on text in a cell:<\/p>\n<ul>\n<li>Bold, italics, strikethrough, underline<\/li>\n<li>Text color<\/li>\n<li>Line breaks<\/li>\n<li>Text size<\/li>\n<li>Hyperlinks<\/li>\n<li>Ordered lists (lines that start with a number, followed by a period, followed by a space)<\/li>\n<li>Unordered lists (lines that start with a hyphen followed by a space)<\/li>\n<\/ul>\n<p>The script <strong>will not detect the following<\/strong>:<\/p>\n<ul>\n<li>Font, since using fonts in HTML emails is a whole <em>thing<\/em><\/li>\n<li>Background color, since it applies to the whole cell and not individual pieces of text<\/li>\n<li>Text alignment (centering, et. al.)<\/li>\n<li>Indenting<\/li>\n<li id=\"step-2-adding-the-go-sxha\">Cut-and-pasted images, since without the URLs of the images it gets messy to import them into emails; use traditional <a href=\"https:\/\/www.gmass.co\/blog\/how-to-include-personalized-image-in-email-marketing-campaign\/\">personalized image embedding<\/a>\u00a0instead<\/li>\n<\/ul>\n<p>Now we\u2019ll use our Google Apps Script to process your formatting and turn it into HTML.<\/p>\n<h2>Step 2: Adding the Google Apps Script<\/h2>\n<p>To use a Google Apps Script, go to <strong>Extensions &gt; Apps Script<\/strong>\u00a0in your Google Sheet.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image7-2.png\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image7-2.png\" alt=\"Choose Apps Script from the Google Sheets menu\" width=\"1348\" height=\"280\" \/><\/a><\/figure>\n<p>In the Apps Script window, <strong>you can change the name of the project and code file<\/strong>. Both are optional, but can be good as a reminder when you reference this script sometime in the future.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image6-2.png\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image6-2.png\" alt=\"You can optionally rename the project and file\" width=\"1678\" height=\"1038\" \/><\/a><\/figure>\n<p>Now delete <code>function myFunction() { }<\/code> and paste in this entire script.<\/p>\n<p class=\"codepen\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\" data-height=\"300\" data-default-tab=\"js\" data-slug-hash=\"YzRYBvw\" data-user=\"samgmass1\">See the Pen <a href=\"https:\/\/codepen.io\/samgmass1\/pen\/YzRYBvw\"><br \/>\nTurn Google Sheets formatting into HTML<\/a> by Sam G (<a href=\"https:\/\/codepen.io\/samgmass1\">@samgmass1<\/a>)<br \/>\non <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/p>\n<p><script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script><br \/>\nIf you did not name your columns RichText and HTMLText, change those names at the beginnings of the script.<\/p>\n<p>The result:<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image17.png\" data-rel=\"lightbox-image-6\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image17.png\" alt=\"The script inserted into the Apps Script window\" width=\"1804\" height=\"1238\" \/><\/a><\/figure>\n<p>Now <strong>click the floppy disk icon<\/strong>\u00a0to save the script.<\/p>\n<p>Then click the <strong>Run<\/strong>\u00a0button.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image10.png\" data-rel=\"lightbox-image-7\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image10.png\" alt=\"Save then run the apps script\" width=\"1874\" height=\"1200\" \/><\/a><\/figure>\n<p>You\u2019ll need to <strong>agree to permissions<\/strong>\u00a0for the script to run.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image20.png\" data-rel=\"lightbox-image-8\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image20.png\" alt=\"Google Apps Scripts require permissions\" width=\"1804\" height=\"1064\" \/><\/a><\/figure>\n<p>Click <strong>Allow<\/strong>\u00a0to give the script access to your Google Sheets.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image14.png\" data-rel=\"lightbox-image-9\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image14.png\" alt=\"Allow the apps script to run\" width=\"1304\" height=\"1452\" \/><\/a><\/figure>\n<p>And after you\u2019ve successfully run the script, go back to your Google Sheet.<\/p>\n<p>The HTMLText column should now show you your formatted text from the RichText column, but with HTML tags corresponding to the formatting.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image1-2.png\" data-rel=\"lightbox-image-10\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image1-2.png\" alt=\"There's now an HTML version of the Google Sheets formatting\" width=\"1874\" height=\"1384\" \/><\/a><\/figure>\n<h3 id=\"optional-setting-up-kpsq\">Optional: Setting up the script to run every time you add a new row to your Google Sheet<\/h3>\n<p>If you plan on adding to the spreadsheet, <strong>you can set this script to run every time it detects a new row.<\/strong><\/p>\n<p>To set that up, click on the <strong>stopwatch icon<\/strong>\u00a0on the left side of the Google Apps Script window to set up a <strong>trigger<\/strong>.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image16.png\" data-rel=\"lightbox-image-11\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image16.png\" alt=\"Create a trigger to make this script run in the future\" width=\"1862\" height=\"1110\" \/><\/a><\/figure>\n<p>Click on the <strong>+ Add Trigger<\/strong>\u00a0button in the bottom right.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image12-1.png\" data-rel=\"lightbox-image-12\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image12-1.png\" alt=\"Add the trigger with the button\" width=\"1862\" height=\"1110\" \/><\/a><\/figure>\n<p>For your trigger settings, go with the following:<\/p>\n<ul>\n<li>Choose which function to run: <strong>copyFormattedText<\/strong><\/li>\n<li>Choose which deployment should run: <strong>Head<\/strong><\/li>\n<li>Select event source: <strong>From spreadsheet<\/strong><\/li>\n<li>Select event type: <strong>On change<\/strong><\/li>\n<li>Failure notification settings: <strong>Notify me daily<\/strong><\/li>\n<\/ul>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image9-1.png\" data-rel=\"lightbox-image-13\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image9-1.png\" alt=\"Settings for your trigger\" width=\"1862\" height=\"1534\" \/><\/a><\/figure>\n<p>Then click <strong>Save<\/strong>.<\/p>\n<p>Now whenever there\u2019s a change in your Google Sheet, the Apps Script will run to turn your formatted text into HTML.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image18.png\" data-rel=\"lightbox-image-14\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image18.png\" alt=\"An example of converted text after it was added\" width=\"1860\" height=\"1484\" \/><\/a><\/figure>\n<p>And with that, it\u2019s <strong id=\"step-3-using-your-fo-nwua\">time to use this HTML-formatted text<\/strong>\u00a0in a GMass campaign.<\/p>\n<h2>Step 3: Using Your Formatted Text in a GMass Campaign<\/h2>\n<p>Go to Gmail and <strong>click the spreadsheet icon<\/strong>\u00a0next to the search bar to begin your new campaign.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image3-2.png\" data-rel=\"lightbox-image-15\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image3-2.png\" alt=\"Connect to your Google Sheets in GMass back in Gmail\" width=\"1928\" height=\"1008\" \/><\/a><\/figure>\n<p><strong>Select your Google Sheet<\/strong>\u00a0from the dropdown menu. You can use any optional settings here if you want, like filtering, keeping duplicate emails, or updating your sheet with reporting data. (In my example, I\u2019m not using any of those.)<\/p>\n<p>Then click <strong>Connect to Spreadsheet<\/strong>.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image8-2.png\" data-rel=\"lightbox-image-16\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image8-2.png\" alt=\"Choose your formatted Google Sheet from the dropdown\" width=\"1804\" height=\"1114\" \/><\/a><\/figure>\n<p>Compose your email message. And use the {HTMLText} merge tag wherever you want to put in the formatted text from your Google Sheet.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image2-2.png\" data-rel=\"lightbox-image-17\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image2-2.png\" alt=\"Use the correct mail merge tag\" width=\"1668\" height=\"1118\" \/><\/a><\/figure>\n<p>Handle any other settings you want for your campaign.<\/p>\n<p>And when you\u2019re ready to send your campaign, hit the red GMass button.<\/p>\n<p>If you want to preview the emails and make sure everything looks perfect before you send, you can use the <strong>Create Drafts<\/strong>\u00a0setting and then hit the red GMass button. That\u2019s what I\u2019ll do here.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image15.png\" data-rel=\"lightbox-image-18\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image15.png\" alt=\"Create drafts to see previews\" width=\"1792\" height=\"1126\" \/><\/a><\/figure>\n<h3 id=\"seeing-your-formatte-tblu\">Seeing your formatted text in your messages<\/h3>\n<p>If you created drafts, you\u2019ll find your messages in your <strong>Drafts<\/strong>\u00a0folder. If they look good, click the link in the email you get from GMass to send your messages.<\/p>\n<p>If you sent your emails without creating drafts first, you can see your messages in the <strong>Sent<\/strong>\u00a0folder.<\/p>\n<p>Click into one, and you\u2019ll see your formatted text in place.<\/p>\n<figure style=\"text-align: center;\"><a href=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image4-2.png\" data-rel=\"lightbox-image-19\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/image4-2.png\" alt=\"How the email looks after mail merging the HTML version\" width=\"1999\" height=\"1302\" \/><\/a><\/figure>\n<p>If things aren\u2019t looking right, make sure you <strong id=\"getting-started-with-vykw\">named the columns in your Google Sheet properly<\/strong>\u00a0and <strong>you used {HTMLText}, not {RichText}, on your mail merge<\/strong>.<\/p>\n<h2>Getting Started with GMass<\/h2>\n<p>And if you haven\u2019t tried GMass\u2026 time to give it a shot!<\/p>\n<p>The technique in this article is <strong>just one of the many, many mail merge personalization options in GMass<\/strong>. You can also mail merge links, images, attachments, and more on your campaigns.<\/p>\n<p>And that\u2019s not all. GMass also has the <strong>easiest automated follow-ups in the game<\/strong>\u00a0\u2014 and you can use mail merge in those as well.<\/p>\n<p>Join the <strong>400,000+ others<\/strong>\u00a0who\u2019ve given GMass an average score of<strong>\u00a04.8+ stars<\/strong> across <strong>9,000+ reviews<\/strong>!<\/p>\n<p>You can get started by <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/gmass-powerful-mail-merge\/ehomdgjhgmbidokdgicgmdiedadncbgf\">installing the GMass extension from the Chrome Web Store<\/a>. It\u2019s <strong>free<\/strong>\u00a0to try and there\u2019s <strong>no credit card required\u00a0<\/strong>for the free trial.<\/p>\n<p>You\u2019ll be sending cold outreach, email marketing, and\/or other mail merge campaigns from inside Gmail in a matter of minutes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you didn\u2019t know, Google Sheets allows you to format pieces of text inside a cell. However, that formatting is trapped inside Google Sheets. It might work if\u2026<\/p>\n","protected":false},"author":29,"featured_media":23219,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4261,6],"tags":[],"class_list":["post-23217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets","category-mail-merge"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)<\/title>\r\n<meta name=\"description\" content=\"How to turn formatting from your Google Sheets into HTML so you can use it in other places, especially mail merge campaigns with GMass.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)\" \/>\r\n<meta property=\"og:description\" content=\"How to turn formatting from your Google Sheets into HTML so you can use it in other places, especially mail merge campaigns with GMass.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/\" \/>\r\n<meta property=\"og:site_name\" content=\"GMass Blog\" \/>\r\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GmailMailMerge\/\" \/>\r\n<meta property=\"article:published_time\" content=\"2023-07-21T00:20:52+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2026-02-13T19:17:27+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/formatted-feat-tinified.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"2002\" \/>\r\n\t<meta property=\"og:image:height\" content=\"934\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"Sam Greenspan\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@GMassForGmail\" \/>\r\n<meta name=\"twitter:site\" content=\"@GMassForGmail\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sam Greenspan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/\"},\"author\":{\"name\":\"Sam Greenspan\",\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/#\\\/schema\\\/person\\\/de82c1ac2f78713b569bb57bfb313c98\"},\"headline\":\"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)\",\"datePublished\":\"2023-07-21T00:20:52+00:00\",\"dateModified\":\"2026-02-13T19:17:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/\"},\"wordCount\":1186,\"commentCount\":3,\"image\":{\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/formatted-feat-tinified.png\",\"articleSection\":[\"Google Sheets\",\"Mail Merge\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/\",\"url\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/\",\"name\":\"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/formatted-feat-tinified.png\",\"datePublished\":\"2023-07-21T00:20:52+00:00\",\"dateModified\":\"2026-02-13T19:17:27+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/#\\\/schema\\\/person\\\/de82c1ac2f78713b569bb57bfb313c98\"},\"description\":\"How to turn formatting from your Google Sheets into HTML so you can use it in other places, especially mail merge campaigns with GMass.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/formatted-feat-tinified.png\",\"contentUrl\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/formatted-feat-tinified.png\",\"width\":2002,\"height\":934},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/google-sheets-formatting-html\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/\",\"name\":\"GMass Blog\",\"description\":\"Tips and tricks for sending mail merge and mass email campaigns directly from Gmail\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/#\\\/schema\\\/person\\\/de82c1ac2f78713b569bb57bfb313c98\",\"name\":\"Sam Greenspan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/544dc4a3d6b96b537586cdde9d818feb8f0de187faed221fdb0dee3a356bf41a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/544dc4a3d6b96b537586cdde9d818feb8f0de187faed221fdb0dee3a356bf41a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/544dc4a3d6b96b537586cdde9d818feb8f0de187faed221fdb0dee3a356bf41a?s=96&d=mm&r=g\",\"caption\":\"Sam Greenspan\"},\"url\":\"https:\\\/\\\/www.gmass.co\\\/blog\\\/author\\\/sam_greenspan\\\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)","description":"How to turn formatting from your Google Sheets into HTML so you can use it in other places, especially mail merge campaigns with GMass.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/","og_locale":"en_US","og_type":"article","og_title":"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)","og_description":"How to turn formatting from your Google Sheets into HTML so you can use it in other places, especially mail merge campaigns with GMass.","og_url":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/","og_site_name":"GMass Blog","article_publisher":"https:\/\/www.facebook.com\/GmailMailMerge\/","article_published_time":"2023-07-21T00:20:52+00:00","article_modified_time":"2026-02-13T19:17:27+00:00","og_image":[{"width":2002,"height":934,"url":"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/formatted-feat-tinified.png","type":"image\/png"}],"author":"Sam Greenspan","twitter_card":"summary_large_image","twitter_creator":"@GMassForGmail","twitter_site":"@GMassForGmail","twitter_misc":{"Written by":"Sam Greenspan","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/#article","isPartOf":{"@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/"},"author":{"name":"Sam Greenspan","@id":"https:\/\/www.gmass.co\/blog\/#\/schema\/person\/de82c1ac2f78713b569bb57bfb313c98"},"headline":"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)","datePublished":"2023-07-21T00:20:52+00:00","dateModified":"2026-02-13T19:17:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/"},"wordCount":1186,"commentCount":3,"image":{"@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/#primaryimage"},"thumbnailUrl":"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/formatted-feat-tinified.png","articleSection":["Google Sheets","Mail Merge"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/","url":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/","name":"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)","isPartOf":{"@id":"https:\/\/www.gmass.co\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/#primaryimage"},"image":{"@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/#primaryimage"},"thumbnailUrl":"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/formatted-feat-tinified.png","datePublished":"2023-07-21T00:20:52+00:00","dateModified":"2026-02-13T19:17:27+00:00","author":{"@id":"https:\/\/www.gmass.co\/blog\/#\/schema\/person\/de82c1ac2f78713b569bb57bfb313c98"},"description":"How to turn formatting from your Google Sheets into HTML so you can use it in other places, especially mail merge campaigns with GMass.","breadcrumb":{"@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/#primaryimage","url":"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/formatted-feat-tinified.png","contentUrl":"https:\/\/www.gmass.co\/blog\/wp-content\/uploads\/2023\/07\/formatted-feat-tinified.png","width":2002,"height":934},{"@type":"BreadcrumbList","@id":"https:\/\/www.gmass.co\/blog\/google-sheets-formatting-html\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.gmass.co\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Turn Google Sheets Formatting into HTML (Then Mail Merge with GMass)"}]},{"@type":"WebSite","@id":"https:\/\/www.gmass.co\/blog\/#website","url":"https:\/\/www.gmass.co\/blog\/","name":"GMass Blog","description":"Tips and tricks for sending mail merge and mass email campaigns directly from Gmail","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.gmass.co\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.gmass.co\/blog\/#\/schema\/person\/de82c1ac2f78713b569bb57bfb313c98","name":"Sam Greenspan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/544dc4a3d6b96b537586cdde9d818feb8f0de187faed221fdb0dee3a356bf41a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/544dc4a3d6b96b537586cdde9d818feb8f0de187faed221fdb0dee3a356bf41a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/544dc4a3d6b96b537586cdde9d818feb8f0de187faed221fdb0dee3a356bf41a?s=96&d=mm&r=g","caption":"Sam Greenspan"},"url":"https:\/\/www.gmass.co\/blog\/author\/sam_greenspan\/"}]}},"_links":{"self":[{"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/posts\/23217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/comments?post=23217"}],"version-history":[{"count":6,"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/posts\/23217\/revisions"}],"predecessor-version":[{"id":26049,"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/posts\/23217\/revisions\/26049"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/media\/23219"}],"wp:attachment":[{"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/media?parent=23217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/categories?post=23217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gmass.co\/blog\/wp-json\/wp\/v2\/tags?post=23217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}