From Google Docs To A Website: 4 Ways To Publish A Doc

Four ways to go from Google Docs to a website: which link each one gives you, which take your own domain, and the small HTML fix every phone needs.
The OxyPages Team · · 9 min read
You've written it in Google Docs. A menu, a CV, an event sheet. Now someone wants "the link", and a share link into the Docs editor isn't what you meant. A view-only share link still opens the Docs screen, menus and all, and on a phone it often nudges people to install the Docs app. Copying the text into a website builder means rebuilding the layout by hand.
Going from Google Docs to a website has four honest routes. Two are Google's own and take a couple of clicks. The other two hand you real HTML files you can put on any host, under an address you choose.
They don't give you the same thing. One keeps a Google address forever. One needs a www in front of your domain. One gives you a proper page, but only after you fix what Google's export gets wrong for phones.
Below are all four, what each link looks like to the person who opens it, and the HTML fixes. I checked every Google menu against Google's help pages in November 2026. If you've already got a ZIP, the upload itself is covered in how to upload a ZIP and go live.
TL;DR: File, then Share, then Publish to web gives a free, self-updating link on docs.google.com, but never your own domain. Google Sites can embed the Doc and take your domain if it has a subdomain like www. For a real page on any host, use File, then Download, then Web page (.html, zipped), rename the HTML file to index.html, add a viewport line for phones, and upload it. A .docx through a Word to HTML converter gives cleaner code.
What Are The Ways To Turn A Google Doc Into A Website?
There are four, split into "stay inside Google" and "take the files out":
- Publish to web. A built-in Docs menu that gives the document a public, read-only link.
- Google Sites. Google's free site builder, which can show a Doc as part of a page.
- Download as zipped HTML. Docs exports an HTML file plus an
imagesfolder, which you upload to any static host. - Download as .docx and convert. Export a Word file and run it through a converter that writes cleaner HTML.
| Route | The link looks like | Your own domain | Updates when you edit the Doc | Looks like |
|---|---|---|---|---|
| Publish to web | a long docs.google.com address ending in /pub | No | Yes, within minutes | A Google Doc with a Google header and footer |
| Google Sites | sites.google.com, or your domain | Yes, with a subdomain like www | Yes, if the Doc is embedded | A Sites page with your Doc inside |
| Zipped HTML on a host | whatever the host gives you | Depends on the host | No, you upload again | Your Doc, with Google's styling |
| .docx through a converter | whatever the host gives you | Depends on the host | No, you convert again | Clean, plain page |
The column that matters is the fourth. The Google routes stay in sync with the Doc. The file routes are a snapshot.
Does Publish To The Web Make A Google Doc A Website?
It makes it a public web page, yes, though not quite a website. Open the Doc, go to File, then Share, then Publish to web, click Publish and copy the link. Google's help page on publishing Docs, Sheets and Slides
Anyone with the link sees a read-only copy, and edits can take a few minutes to show. The published pages I opened while writing this carried a "Published using Google Docs" line at the top and "Updated automatically every 5 minutes" at the bottom, next to a "Report abuse" link.
For a club newsletter, that's enough. It costs nothing and you never touch a file. The limits are real, though:
- No custom domain. The address stays on docs.google.com. You can't point
menu.yourcafe.comat it. - It looks like a Doc. Same page width, same fonts, plus Google's branding.
- Work and school accounts may not have it. An administrator can switch publishing off or limit it to the organisation.
- Stopping is manual. Same menu, then Published content and settings, then Stop publishing.
The same window has an Embed tab, which is how people put a published Doc inside a site they already have.
When Is Google Sites The Better Route?
Google Sites is the better route when you want the Doc to stay live and editable and also sit under your own domain. In Sites, click Insert, pick Docs at the bottom of the panel, choose your document and click Insert, then Publish.
One catch: if the Doc has restricted sharing, only people with access see it on the site. Google's fix is to publish the Doc to the web first, then use Insert, then Embed with the published link.
For your own domain, Sites has a Custom domains setting, but Google is specific about it: "Your URL must include a subdomain, like www". Google's help page on custom domains in Google Sites So www.yourname.com works and bare yourname.com needs a redirect from your registrar.
The trade-off is design. You get Sites' layouts, and Sites won't host a page you built elsewhere. Its Embed box only drops a snippet into a frame. If that's your wall, see what to use instead of Google Sites.
How To Export A Google Doc As HTML And Put It Online

You export a Google Doc as HTML from File, then Download, then Web page (.html, zipped). You get a ZIP with one HTML file named after your document and an images folder beside it. That ZIP is very nearly a website already.
Say it's a two-page event sheet for a neighbourhood book swap, with a map and two photos.
- Tidy the Doc first. Resolve comments, settle suggestions, and give each image alt text (right-click it, then Alt text). Otherwise it exports empty.
- Download it. File, then Download, then Web page (.html, zipped). The book swap comes out as one HTML file and three images.
- Unzip it and rename the page. The HTML file is called something like
BookSwapSpring.html. Rename itindex.html, the file a host shows at the main address. Without it, most hosts show an error at the main address instead of your page. - Add the missing lines. Open
index.htmlin a text editor and paste the fix from the next section just after<head>. - Zip it again, or don't. Select
index.htmland theimagesfolder together and compress them. On a Mac that's right-click, then Compress. On Windows it's right-click, then Send to, then Compressed folder. - Upload it. On OxyPages you drop the ZIP or the folder on the homepage and get a live link without signing up, up to 25 MB. It lasts 30 minutes unless you claim it with a free account. Netlify Drop and Cloudflare Pages also take a dragged folder.
- Open it on your phone. If the text is tiny or a photo runs off the side, step 4 didn't save.
The whole thing takes about five minutes the first time.
What Breaks In The HTML Google Exports?

Google's exported HTML copies the printed page, so what breaks is what a phone needs. I exported a few public Docs while writing this, and the same problems showed up in every file.
No Viewport Line, So Phones Shrink It
The export has no viewport tag. Without it, a phone pretends to be a desktop screen and shrinks the whole page until the text is unreadable.
Page Margins Baked In As Points
A default Doc exports with a maximum width of 468pt and 72pt of padding on every side. That's a US Letter page with one-inch margins, and on a narrow screen it squeezes your text into a thin strip.
Images Locked To Their Pixel Size
Each image sits in a box with a fixed pixel width and height, so a full-width photo runs off a phone screen.
No Title In The Browser Tab
The export has no title tag, so the tab and any shared link preview show the file name instead of a real title.
Links And Fonts Still Point At Google
Every link goes through a google.com redirect before the real address. They work, but edit them if you want clean links. Fonts load from a Google server, so a font that isn't a Google font, Calibri for example, falls back to whatever the phone has.
Here's the fix for the first four. Paste it right after <head> and change the title:
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Book Swap - Spring Edition</title>
<style>
.doc-content { max-width: 720px !important; padding: 16px !important; margin: 0 auto; }
.doc-content img, .doc-content span { max-width: 100% !important; height: auto !important; }
</style>
Google's export puts the doc-content name on the page body, so these rules beat its fixed sizes. That's the whole repair for a simple Doc. Merged table cells and text boxes are where it gets fiddly, and for those the next route is less work.
What About A Word File Instead Of Zipped HTML?
A .docx export is the better starting point when you want clean HTML rather than Google's styling. Download the Doc with File, then Download, then Microsoft Word (.docx), and put it through a converter.
Our free Word to HTML converter runs in your browser, so the document stays on your device until you publish. It keeps headings, lists, tables, links and images, and drops fonts and colours on purpose. Pictures go inside the page, so you get one self-contained file. Text boxes, shapes, headers and footers don't survive any .docx converter.
Which Route From Google Docs To A Website Fits You?
Pick by what the page is for and how often it changes:
- A club newsletter or a reading list you edit weekly: Publish to web. The auto-update is the whole point, and nobody minds the docs.google.com address.
- A school or team page with several Docs: Google Sites. Anyone you add as an editor can change it, and it takes a
wwwdomain. - A CV or portfolio page: Zipped HTML or the .docx route, on a host with your own domain. An address with your name in it reads better to a recruiter than a docs.google.com link.
- A café menu or a price list: Either file route. You change it a few times a year, and you want it to look like your page, not a Google file.
- A one-off event page: Zipped HTML on a free subdomain. Nobody judges the address of a page that's gone after the weekend.
Two notes on hosting your own files. Our free plan is for personal, non-commercial sites, so the café menu belongs on a paid plan, from $4 a month billed annually. And if the page must change the moment you edit the Doc, OxyPages is the wrong tool: a static host shows the files you last uploaded, so stay with Publish to web or Sites.
Don't count on Google Drive to serve the files either. why Google Drive hosting stopped working explains what happened.
What To Do Next
Decide one thing: does this page need to update itself, or look like yours?
If it needs to update itself, use Publish to web and you're done in a minute. If it needs to look like yours, download it as zipped HTML, rename the file to index.html, paste in the fix above, and drop the ZIP to get a live link. Either way, it's a ten-minute job.
FAQ
Can I Use My Own Domain With A Published Google Doc?
No. A Doc published to the web always lives on docs.google.com. To use your own domain, either embed the Doc in Google Sites and connect a www domain there, or export the Doc as HTML and upload it to a host that supports custom domains.
Does A Published Google Doc Update Automatically?
Yes, if "Automatically republish when changes are made" is ticked when you publish. Google says changes can take a few minutes to appear. An HTML export is different: it's a copy, so you download and upload it again after each edit.
Why Does My Exported Google Doc Look Tiny On My Phone?
The export leaves out the viewport line phones need and keeps the page's one-inch margins. Add the viewport tag and override the padding and image sizes, as in the snippet above.
Can I Get A Google Doc As A Single HTML File?
Not directly. The HTML download is always a ZIP, because the images sit in their own folder. For one self-contained file, download a .docx and use a Word to HTML converter that writes the images into the page.