Are you fed up with the time and hassle of formatting text for the web? Our service lets you convert your text to clean HTML instantly.
Our basic service is free to use but go PRO if you need more features like converting Word or PDF documents. Check out our PRO version...

Batch convert from any browser...

Visual Editor (paste text to convert to HTML)

For the best experience use our site on a desktop

HTML Editor (paste HTML to convert to text)

Code length: 0

In order to process HTML with JavaScript please use 'html' variable name. Code examples:
Replace first occurrence of 'xxx' word with 'yyy' word: html = html.replace("xxx","yyy");
Replace all p tags with span tags with regexp: html = html.replace(/<p([^<>]*)>(.*)<\/p>/g,"<span$1>$2</span>");
Remove all p tags with inner content with regexp: html = html.replace(/<p[^<>]*>(.*)<\/p>/g,"");
Advanaced example - match inner text of all tags and replace start " with <blockquote> and end " with </blockquote>:
html = html.replace(/>([^<>]+)</gi, function(m, p1) { return ">" + p1.replace(/([^<>"]*)"([^<>"]*)"/gi, '$1<blockquote>$2</blockquote>') + "<"; } );

Click here to see more info about JavaScript string functions...


Select your options then click the green 'Cleanup my HTML' button

Go Pro from $5 per month

Cleanup or process your HTML without any restrictions. Upload your Word (DOCX), PDF and other documents and instantly convert them to clean HTML. Insert images with the file manager. Supercharge your workflow by saving your cleanup options to a template. Export your HTML to Word or PDF. Create email signatures and with logos.

Get extra options in the Visual Editor like more fonts and a spellchecker. Resize the windows to suit your needs. Save and open your files from any browser.

Try PRO for free

(No credit card required)

Word to HTML Pro features:

Unlimited HTML cleanups

Convert Word, PDF and other docs to HTML

OCR for PDFs containing scanned text

Save your HTML online

Save your cleanup templates

Multiple find & replace

Resize editors or go fullscreen

Autosave edited HTML

Download edited content as HTML, DOCX or PDF

Design and test HTML emails

HTML templates (email signatures)

Use google or other web fonts

Compress or indent HTML

Image file manager

Spellchecker

Dark or light HTML editor theme

Custom JavaScript processing


Word to HTML is the easy way for you to instantly convert your text or documents to clean HTML5 online. You can use our tool to clean up, transform and reduce the size of existing HTML, also as HTML code generator, Word to HTML conversion tool or web page editor.


How to convert text to HTML?

  1. Paste content from Microsoft Word or Excel or write your text in the Visual Editor.
  2. Your text will be instantly converted to clean HTML. You can keep or remove formatting.
  3. Your converted HTML will appear in the HTML Editor.

You can also create new content by typing directly into the Visual Editor box. It works just like any text editor. You have full control over fonts, font size, font colours, as well as the ability to create lists, tables and insert images.


How to convert MS Word document to HTML?

  1. Click the blue Upload file button and select your document
  2. Your file will be instantly converted to clean HTML
  3. The text from your file will be shown in the Visual Editor
  4. Your converted HTML will appear in the HTML Editor

Word to HTML supports Word files (.DOCX and .DOC), PDF files, RTF (rich text format), Open Doc files (from Libre or Open Office) and .TXT plain text files. If your document contains images, tables or other rich content this will also be converted to HTML for you.

When uploading a document you have three additional options:

  1. Embed images: This is a cool feature where the images are embedded directly into your HTML code. You do not need to have separate image files. We recommend you experiment with this option as it can work well for small images but you might have issues with a lot of large images. The size and complexity of your HTML files will also increase.

  2. Full page mode: Creating standalone HTML files? No problem, this option adds the <head> and <body> to HTML. You need this so the page displays correctly. If you are pasting into a web-based system like Wordpress, Amazon, eBay etc. you will not need this option.

  3. Fixed HTML: If you need your HTML to look exactly like your input document, then tick this fixed HTML option. But please be aware that fixed layout may not look great on mobile devices. It's useful when used as a standalone HTML page or when shown in an <iframe>. This option enables Full page mode option which is required to correctly display fixed HTML pages. It disables embed images option if it is enabled.

How to clean up existing HTML?

A great time-saving feature is the ability to clean up existing HTML. For example, say you are editing a page in Wordpress or another content management system, it can be useful to be able to remove the formatting you don’t need. 

To clean up your HTML all you need to do is paste it into the HTML editor box on the right side. When you paste in the code you will get a preview of how it looks in the Visual Editor on the left. You can then directly edit your HTML in the HTML Editor on the right or use the Visual Editor on the left to make your changes.

To clean up your HTML you can use the HTML Cleanup options. You can also add, find and replace commands to change your code; or find and delete commands to delete code you do not need. Once all cleanup options are selected click the green Clean Up My HTML button. Then you can copy converted HTML to clipboard or save it and download it as HTML.

If you make a mistake you can click the undo button under the HTML Editor to undo your changes - this is useful to test which combination of settings work best.


Choosing an editor layout

Above the Visual Editor are the editor display options. Depending on your screen size and personal preference you can choose to display all the Visual Editor options or a compact version of the editor icons. If you select the compact view all the options are still there, you just need to click on the icons with the three dots to see the additional options.

If you are creating Amazon descriptions you can enable the Amazon listing mode. This will ensure you only use HTML that is compatible with Amazon descriptions.

You can also choose to make the Visual Editor window larger or smaller by clicking on the < > icons between the two windows. 


Creating and saving templates

When you have found a combination of settings that work best for you you can save these settings to a template file. This means in the future you can save time by just selecting your template and using it to clean up your HTML file. The template file will store your cleanup settings as well as any find and replace commands, manage tags and attributes or custom Javascript. 


Saving and exporting your documents

You can store many HTML files online. To save your active file just click on the blue save button below the Visual Editor. 

If you click on the arrow to the right of the save box you will get a menu with additional options for exporting your file to HTML, Word or PDF format. 


Previewing your files

The Visual Editor will give you a good idea of how your document will look. But to see exactly how it will look you can preview your file. The preview options are below the Visual Editor to the right of the save buttons. There are three options:

Email preview: if you are working on an HTML email you can send a preview of how it will look to your email address. 

General Preview: this will open a new browser tab and show you how your HTML looks.

Responsive Preview: this gives you the option to see how your HTML looks in desktop, tablet and mobile.