How to embed Google reviews in an HTML website (two lines of code)
To embed Google reviews in an HTML website, paste a hosted widget's two lines of code where the reviews should show. That works on a site you wrote by hand and on one a static site generator builds.
Google does not give you a reviews widget to paste. What it offers is the Places API, which needs an API key and a billing account and returns at most five reviews for a business.
With TileSet's Google reviews widget, from the team behind Smash Balloon, you paste your Google Maps link once, and your page gets these two lines:
<script src="https://app.tileset.com/v1/tileset.js" async></script>
<div data-tileset="w_YOUR_WIDGET_ID"></div>
There is no API key, no Google Business login and no code of yours that talks to Google. The free plan covers it and asks for no card.
Step 1: Make your Google reviews widget
- Sign in to TileSet (the first sign-in makes your free account), open Content, press Add a source and pick Google Reviews.
- Paste the link to your listing from Google Maps (open the listing, press Share, copy the link). You can also type the business name with its city and pick it from the matches.
- Check the line Connected to ... on the source's page, so you know the right business was matched.
- Open Widgets, press Create widget, choose the Google source and pick a layout: grid, carousel, masonry or bento, light or dark.
Reviews on Google are public, so there is nothing to authorize, and you can set this up for a client without their password. The longer walk-through, with the settings worth turning on, is in How to add a Google reviews widget to any website.
Step 2: Paste the two lines of HTML
Copy the snippet from the widget's Install tab. Do not type the id by hand: a made-up id shows nothing.
- Put the
divwhere the reviews should appear. - Put the
scripttag anywhere on the page, once.asynckeeps it from holding up the rest of the page. - For two walls on one page, keep one script tag and add a second
div.
On a site with a shared layout file (Eleventy, Hugo, Jekyll, Astro), the script tag can live in the layout and the div on the pages that show reviews. On a site that builds its pages in the browser (React, Vue, anything on Vite), put the script tag in index.html and the div in your component. The script finds the div even when it is added after the page has loaded.

Step 3: Check that the reviews show
Publish the page, then open the widget's Install tab, paste the page's address into Check my page and press Check. It reads the page the way a visitor would and tells you whether the script is there, whether the div is there and whether the widget has reviews to show. When a line is missing, a button copies exactly that line.
The check reads public pages only. An address on localhost, an IP address or one with a port such as :8080 will not pass, so check the published page.
If the reviews do not show
A hand-coded site has a few traps a site builder does not:
- A content security policy. If your site sends one, it must allow
https://app.tileset.comfor scripts, connections and images, allow inline styles, and allow images from Google. - A build step that bundles or delays scripts. The script works out its own address from its URL, so leave
tileset.jsas its own tag and exclude it from tools that combine or defer scripts. - A saved copy of the script. Load it from
app.tileset.com, as the snippet does. A copy on your own server misses every later fix. - A wall near the top of the page. It can draw a moment after the page does. A
min-heighton thedivholds its place so nothing jumps.
Keep your page cache on. A cached page stores only the script tag and the empty div, and the reviews are fetched in the visitor's browser, so a page cached for days still shows the latest ones.

Other ways to embed Google reviews in HTML
A hosted widget is one route of four. The other three:
- Google's Places API. This is Google's own route. It returns at most five reviews for a business and needs an API key with billing turned on. You write the request and the HTML for the cards.
- Static HTML. Copy a few reviews into
blockquoteelements. There is no script and nothing to load. The reviews stay as they were on the day you copied them. - A link to your listing. A button that opens your reviews on Google Maps puts no reviews on your page. It is free, and it is never out of date.
What you get, and what you do not
- The newest 24 reviews, each with the reviewer's name and photo, the stars, the date, the text and your reply. A monthly pass can raise that to 72 for reviews with photos. It is not your whole review history.
- New reviews on a schedule. Daily is the fastest Google reviews can update. On the free plan one Google source keeps up about once a week, because every update spends credits and the free plan adds 60 a month.
- No view cap. Page views are never capped on any plan, the free one included, so a busy day cannot switch the wall off.
- A small "Shown with TileSet" link under the wall on the free plan. Paid plans can hide it.
- Reviews as Google has them, the less happy ones included. Filters by stars, photos or a keyword are on the Growth plan and up.
- A wall that keeps its last reviews. If an update fails, the widget goes on showing what it already has.
If you need the reviews in your own database or your own markup, build on Google's APIs. TileSet or build it yourself lists what that job includes.
FAQ
Does Google have a reviews widget for websites?
No. Google gives you the Places API, which returns at most five reviews for a business and needs an API key with billing turned on. There is no official block of reviews to paste into a page, so the choice is between building on that API and using a widget.
Can I choose which reviews show?
Yes. Hiding a single review is free on every plan. Filters by star rating, photos or a keyword are on the Growth plan and up.
Do I need a Google API key or a Google Business login?
No. Your reviews are public, so the Google Maps link to your listing is all TileSet needs.
Is it free, and is there a view limit?
There is a free plan with no card. It holds three live sources, and views are never capped on any plan.
How many reviews does it show?
The newest 24, and up to 72 once the monthly photo pass has run for reviews that include photos.
Does it slow the page down?
The script is about 13 KB compressed, loads without blocking the page and sets no cookies. The wall itself loads when it comes near the screen.
Can an AI agent do this for me?
Yes. TileSet has an MCP server at https://app.tileset.com/mcp. Add it to Claude Code, Cursor or Codex and ask "add our Google reviews to the homepage": the agent connects the listing, builds the widget, adds the two lines and checks the page. The steps for each tool are in Connect an agent.
If your setup has a twist this page does not cover, write to us from Help in the account menu.
Joel