Skip to the content

Contact usFree tools · No signup · Files stay on your device

Developer Tools

How to paste a Word document into WordPress without the mess

How to paste a Word document into WordPress without the mess

A Word document is easy to write and awkward to publish. Paste it straight into the WordPress editor and you can end up with odd fonts, uneven spacing and headings that do not look like the rest of your site. A cleaner route is to convert the document to plain HTML first. Our free Word to HTML tool does that in your browser, and WordPress then styles the result with your own theme.

Here is the whole routine, from the Word file to a published post.

Why pasting straight from Word goes wrong

Word keeps formatting for a printed page: a font, a size, spacing between lines, indents. When you paste into a web editor, some of that formatting can come with the text. Your theme was designed to control those things, so the pasted post can look like a different website.

Headings are another problem. A line that you made big and bold in Word is not a heading to a browser. It is a paragraph with a large font, which means no structure for search engines, screen readers or a table of contents plugin.

Plain HTML solves both: only the structure travels (headings, paragraphs, lists, tables), and the look comes from your theme.

Step 1: prepare the document in Word

Five minutes here saves much more later.

  • Use the Styles gallery for headings. Select each heading and apply Heading 2 or Heading 3. WordPress themes usually show the post title as the page's main heading, so avoid Heading 1 inside the body.
  • Use Word's bullet and number buttons for lists. Numbers typed by hand are just text.
  • Remove blank lines used for spacing. Empty paragraphs are dropped anyway, but cleaning them keeps your original tidy.
  • Keep tables simple: one header row, no merged cells.
  • Save as .docx. If you have an old .doc, open it in Word, Google Docs or LibreOffice and save it as .docx first.

If your Bangla text was typed in a legacy font such as SutonnyMJ, convert it to Unicode first. The converter copies the stored letters, and the font is not carried over, so Bijoy text would appear as Latin gibberish. Bijoy vs Unicode explains why.

Step 2: convert with Word to HTML

  1. Open Word to HTML and choose your .docx with "Choose a Word file".
  2. Set Output to "Body content only". You do not want a full page with its own head and style block inside a WordPress post.
  3. Set Styles to "None (plain tags only)". Your theme will style the tags.
  4. Untick "Keep pictures (embedded inside the HTML)". Pictures embedded as data: links make the code huge, and WordPress is better at serving images from its Media Library.
  5. Leave "Use the first table row as the header" ticked if your tables have a header row.
  6. Check the counts under the options: Paragraphs, Headings, Tables and Images. If Headings is 0 but your document has headings, they were not made with heading styles.
  7. Open the Preview to see the structure, then press Copy.

The output is tidy code such as:

<h2>Vacancy details</h2>
<p>Applications are open for <strong>12 posts</strong> of Clerk.</p>
<ul>
  <li>Age limit: 30 years</li>
  <li>Last date: 15 March</li>
</ul>

Step 3: paste the HTML into WordPress

The exact menu names change between WordPress versions, but the idea is the same.

In the block editor:

  1. Add a "Custom HTML" block and paste the code into it.
  2. Use the block's "Convert to Blocks" option if you want the content split into normal paragraph and heading blocks that you can edit one by one.

You can also paste into the Code editor, which you reach from the editor's options menu.

In the Classic editor: switch to the Text tab and paste there, not the Visual tab.

Paste into the code view, not into the visual editor. The visual editor may try to reformat what you paste, which is the very thing you are avoiding.

Step 4: finish what the converter cannot do

Three things need a manual pass:

Pictures. Where the document had a picture, the HTML has [image]. Upload the pictures to the Media Library, insert them at those spots, and add descriptive alternative text. This also helps people using screen readers and gives your images a chance to appear in image search.

Links. Web and e-mail links keep their address. A link inside a table cell, or one that jumps to a bookmark in the document, arrives as plain text: select the words in the editor and add the link again.

Headings. If the Word file has a Heading 1, the HTML has an <h1>. A theme that already shows the post title as an <h1> then has two. Change it to Heading 2 in the editor, or use Heading 2 in Word and convert again. If the document has only a Title style and no Heading 1, the title becomes an <h1> too, so check it.

Tables in WordPress

With "None (plain tags only)" the table has no borders, because the markup carries no style. Some themes style tables well, and others show rows with no lines at all. You have three choices:

  • Add a little CSS in your theme or the Customizer for table, th and td.
  • Convert the table separately. Excel to HTML Table lets you pick "Inline styles" so the borders are written into the code. Paste that instead.
  • Convert the whole document with Styles set to "Inline (colours, sizes, alignment)". Tables then get borders, but text colours and sizes also come across, which may not match your theme.

When you only need a few paragraphs

You do not need any of this for a quick post. If the text is short and has no tables, paste it as plain text (Ctrl+Shift+V in most browsers) and apply headings in the WordPress editor. The conversion route pays off for long documents with many headings, lists and tables, such as a notice, a guide, a policy or a result sheet.

Common problems and how to fix them

Headings are plain paragraphs

The Word file did not use heading styles. Apply Heading 2 or Heading 3 in Word, then convert again.

Bangla letters look like English gibberish

The text is in a legacy font such as SutonnyMJ. Convert it to Unicode before the HTML conversion.

Pasted text still has odd spacing

You probably pasted into the visual editor. Clear the post, switch to a Custom HTML block or the Code editor, and paste the converted code there.

The numbered list starts at the wrong number

Word lists continue numbering from an earlier list. The converter keeps the starting number it finds. Edit the start value in the code, or restart numbering in Word.

The tool says the file cannot be opened

The messages are plain: an old .doc file needs saving as .docx, and a password-protected or damaged file cannot be read. A file that is not a Word document is refused too.

Quick checklist

  • Use Heading 2 and Heading 3 in Word, not Heading 1.
  • Convert with Body content only, Styles None and Keep pictures off.
  • Paste into a Custom HTML block, the Code editor or the Text tab.
  • Add pictures, alt text and any links that were inside tables.
  • Check headings, lists and tables in the preview before you publish.

For every setting in the converter, read the complete Word to HTML guide. If your destination is a Markdown-based site instead of WordPress, use Word to Markdown.

Frequently asked questions

Why does text pasted from Word look different on my WordPress site?
Word's clipboard content can carry its own fonts, sizes and spacing, so the pasted text may not follow your theme. Converting the document to plain HTML first removes those, and your theme's CSS then styles the text.
Which Styles option should I use for WordPress?
Use “None (plain tags only)” and “Body content only”. Your theme already knows how to style headings, paragraphs, lists and links, so the cleanest code is the best code.
Will the pictures from my Word file appear in WordPress?
Not if you untick “Keep pictures”, which is what we recommend: you will see [image] markers instead. Upload the pictures through the Media Library, add descriptions, and place them where the markers are.
Do links survive the conversion?
Yes. Web and e-mail links arrive as real links with their address. Only links inside table cells, and links to a bookmark inside the document, arrive as plain text; add those again in the editor.
Should my Word title be a Heading 1?
Usually no. Most WordPress themes already show the post title as the page's main heading, so use Heading 2 and Heading 3 for the sections inside the post.
Found this useful? Share it

Tools in this guide

Main tool

Word to HTML

Turn a Word document into clean, semantic HTML you can paste into a website, CMS or e-mail.

Open tool

Word to Markdown

Turn a Word document into Markdown for GitHub, a docs site, a static blog or a note app.

Open tool

HTML to Word

Turn HTML code or a saved web page into an editable Word document without installing anything.

Open tool

Word to PDF

Turn a Word document into a PDF without installing anything.

Open tool

Back to all guides & blog