
Do Exact Match Domains Still Help SEO? What Google Says
Do exact match domains still help SEO? Google says keywords in a domain alone have hardly any effect. Learn the real risks,…
Read article
This guide is for writers, editors and site owners who draft in Google Docs and publish in WordPress, and who keep finding odd fonts, extra spacing or broken blocks after pasting. You will learn what travels with a copied document, how to paste from Google Docs into WordPress without the hidden styling, and how to handle tables, images and invalid block errors.
To paste from Google Docs into WordPress cleanly, clean the HTML before it reaches the editor. Paste the document into a Word to HTML converter, keep headings, paragraphs, lists, links, tables and images, drop spans and inline styles, then paste the clean HTML into WordPress. Rebuild tables with real header cells and upload images yourself.

It goes wrong because a copy carries the look of the document as well as its words. The formatted HTML that comes with a copied selection often wraps runs of text in span tags, with font, size, colour and line height written as inline styles, and the whole selection can sit inside a wrapper with a long editor id. Headings, lists and links are there too, but surrounded by markup your theme never asked for.
That markup causes three problems. Inline styles can override your theme, so one post ends up in a different font or size from the rest of the site. Empty paragraphs used as spacing add gaps that are hard to remove. And markup the block editor does not expect can turn into an invalid block, which is covered further down.
There are four common routes, and they differ in how much structure and how much clutter they keep. Pasting straight into the editor is quick but brings whatever the clipboard holds. Pasting as plain text removes the clutter and the structure together, so you rebuild every heading and link by hand. Cleaning the HTML first keeps the structure and drops the clutter.
| Route | Keeps structure? | Keeps clutter? | Best for |
|---|---|---|---|
| Paste straight into the editor | Yes | Often, depending on the content | Short, simple text |
| Paste as plain text | No, rebuild headings and links | No | A few paragraphs with no formatting |
| Clean the HTML first, then paste | Yes | No | Full articles with headings, lists and links |
| Rebuild tables separately | Yes, with real header cells | No | Any document that contains a table |
For most articles the third route is the best balance. It keeps the work you already did in the document, such as heading levels, bullet lists and links, and it removes everything that belongs to the document editor rather than to your page.
Clean the content in between, then paste it in one go. Here is the routine:
h2 and h3.The block editor can build blocks from pasted HTML. Its developer documentation on block transforms describes raw transforms that create blocks “from raw HTML nodes” when “content is pasted or dropped into the editor”, using a schema that is “applied to clean up the pasted content”. The cleaner the HTML you give it, the more predictable the blocks you get back.
Rebuild them with real header cells instead of trusting the pasted grid. A table copied from a document usually arrives with fixed widths, borders and colours on every cell, and the top row is often ordinary cells in bold rather than header cells. You have two clean options.
The first is the WordPress Table block. Its documentation lists a “Header section” toggle that “adds a header section to the table”, a footer section toggle and a caption you can switch on, and notes that fixed width table cells are “turned on by default” as of version 6.6. The second is to copy the table into a spreadsheet, paste the cells into the HTML table generator, tick the header row, add a caption and paste the result into a Custom HTML block. Use the second route when you want scope attributes and a scroll wrapper for wide tables on phones.
Upload each image to the Media Library and insert it from there, with alt text that describes it. An image pasted from a document can point to an address on the document service rather than on your site, and you do not control how long that address keeps working. Hosting the file yourself keeps it under your control.
Alt text matters for search as well as for accessibility. Google’s image SEO best practices say “Google can find images in src attribute of <img> element” and call alt text “the most important attribute when it comes to providing more metadata for an image”. The converter keeps only src and alt on each image and counts the images that still need alt text.
Choose how to resolve the block, then remove the markup that caused it. WordPress’s help page for the “unexpected or invalid content” error says it “typically happens when HTML is manually added or copied into a block, and the block editor doesn’t recognize it as valid content for that specific block type”, and gives inline CSS in a Paragraph block as an example. The block offers Attempt Block Recovery, which restores the block “as it was before the error appeared”, plus Resolve, Convert to HTML and Convert to Classic Block.
Recovery is the right choice for a single stray style. When many blocks break after one paste, it is faster to undo the paste, run the text through the converter and paste again. Contributors should know one more rule from WordPress’s Custom HTML block page: in a Custom HTML block added by a user without the unfiltered_html capability, WordPress strips disallowed tags such as <script> and <iframe> when the post is saved or updated.
Once the content is in, finish the page with the WordPress SEO checklist, and use the same clean paste routine when you update old blog posts from a revised draft.
Example: a short Google Docs section on guest posting, with one heading, one paragraph containing a bold phrase and a link, and a 2 item bullet list. Pasted into the Word to HTML converter, the source is 1,452 characters. The tool detects Google Docs, unwraps 9 span tags, removes 2 empty paragraphs and 31 style, id, dir and other attributes, and keeps the one link address. The clean result is 6 lines and 264 characters, 81.8% smaller: an h2, a paragraph with strong and a link, and a ul with 2 items. Nothing in it can override the theme.
The pasted HTML carries inline styles from the document, such as font family and size, and inline styles can override your theme. Clean the HTML before pasting, or paste as plain text, so the theme’s own fonts apply to the post.
Pasting is not a problem in itself. The risks are side effects: headings typed as bold text instead of real headings, images left on outside addresses without alt text, and heavy markup. Clean the HTML and check headings, links and images before you publish.
No. Copying from the document, cleaning the HTML in your browser and pasting it into the editor works without any plugin. Import plugins can save time on large volumes, but check what markup they produce before you rely on one.
Use normal blocks where you can, because each heading, paragraph and list becomes its own editable block. Convert to Classic Block is one of the options WordPress offers when a pasted block shows as invalid, but clean HTML usually avoids the error.
Links survive a formatted paste and a cleaned paste, but not a plain text paste. The converter keeps each link with only its href and removes links with unsafe addresses such as javascript, keeping their text so nothing disappears from the sentence.
Wide tables push the layout sideways on small screens. Put the table in a wrapper that scrolls horizontally, which the HTML table generator can add, and split very wide tables into two smaller ones where the content allows it.
This guide is part of my WordPress SEO checklist.
Checked 23 Oct 2026. Facts checked against these official pages. Read how I check facts in my editorial policy.
Want a WordPress site that keeps every post clean and consistent? See my WordPress website design service.

Do exact match domains still help SEO? Google says keywords in a domain alone have hardly any effect. Learn the real risks,…
Read article
How to pick a website colour palette: start from your brand colour, add neutrals and one accent, assign roles and check every…
Read articleFavicon, Open Graph and app icon sizes from Google, Facebook, X and web.dev: the exact numbers, formats and tags, with free tools…
Read articleSend your website and I will reply with a free audit.