How to Properly Import Microsoft Word Documents into WordPress

How to Properly Import Microsoft Word Documents into WordPress Featured Image

Microsoft Word is not the best tool to produce web-friendly documents due to the messy HTML it produces, and this is also the case with Google Docs and other Word Processing software. Despite this, many people prefer to use it when producing content for the Web, perhaps because it has more features than the default WordPress visual editor which is rather limiting for certain workflows.

Unfortunately, in many cases, the formatting of your documents may break when you try to copy and paste from Word into the WordPress editor. However, there are ways you can get around this.

Pasting as plain text

If your Word document does not paste cleanly into WordPress, you can try pasting as plain text which would remove all formatting.

To do this, switch to the “Text” tab highlighted below and paste your document there. Afterward, you can switch back to the Visual tab to format your documents properly before publishing.

ms-word-to-wordpress-plain-text

With images, there is no way to copy and paste directly from Word so you’ll need to manually upload any images used in your document.

Using a plugin

As you might expect, there are quite a few plugins that will make the process of transferring articles from Microsoft Word a seamless experience.

One plugin is the Mammoth .docx converter which works for documents saved in the .docx format. You can install it by navigating to “Plugins -> Add New” and entering “Mammoth” as your search query.

ms-word-to-wordpress-mammoth-installation

On activation, create a new post by navigating to “Posts -> Add New.” You will find the plugin’s metabox somewhere below the WordPress editor.

ms-word-to-wordpress-mammoth

All you need to do is select your .docx document by clicking the “Browse” button which should open the file picker on your operating system.

Once you have selected the file, you will be presented with three options. The Visual tab shows how the document will look if you import it into WordPress.

If you prefer to view the HTML generated by the plugin, you can do so by switching to the HTML tab. The messages tab will display errors, if any, that occurred during conversion.

ms-word-to-wordpress-mammoth-usage

Once you are satisfied with how the post looks, and if the formatting is in order, click the “Insert to editor” button to import the post into the WordPress editor.

Wrapping it up

As I alluded to earlier, Word processors don’t make the best web publishing tools. If you insist on using one for your content creation process, the tips in this article should help you import documents into WordPress without breaking a sweat.

To save your time though, I recommend you try using markdown to format your documents and export them to HTML for straight copy and paste into WordPress.

What other techniques have you found effective for importing MS Word documents into WordPress? Tell us about it in the comments below.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Ayo Isaiah Avatar

Read next

Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark
Almost all of the world’s internet traffic does not travel by satellite but through fibre-optic cables lying on the ocean floor, a hidden web of wires crossing the deepest parts of the sea to connect the continents.
People who flip their phone face down on every table aren’t being secretive. They figured out that staying interruptible meant handing their time to whoever rang first
Twitch vs. Facebook Gaming vs. YouTube Gaming: What’s the Best Live Game Streaming Platform?
WinX DVD Ripper: Quickly Rip and Digitize DVDs