Convert text to HTML
Write or paste text from Word, Google Docs or a web page and copy it as clean HTML – or paste HTML and see it as formatted text.
The tool could not be loaded. It needs JavaScript: please enable it or reload the page.
Convert text to HTML
Text (like in Word)
Welcome
Write or paste like in Word, with bold and italic text, lists and links. The HTML code appears on the right.
- Paste text from Word: the formatting is cleaned up
- Paste HTML on the right: the text appears on the left
Shortcuts: Ctrl or ⌘ + B bold, + I italic, + Z undo. Scripts, forms and embedded content are always removed.
Frequently asked questions
What happens to text from Word or Google Docs?
Headings, bold, italic, lists, links and tables stay; fonts, colours, sizes and Word’s many extra details are dropped. To keep classes and styles, switch “Clean up” off.
Is the HTML safe?
Scripts, event attributes such as onclick, forms, iframes and javascript: links are removed before anything is shown or exported. Only common text elements are allowed.
More tools in this category
- Word counter Count words, characters and reading time.
- Compare texts Show the differences between two texts.
- Markdown editor Write Markdown, HTML preview and code.
- Text from PDF Extract text, copy it or save it as TXT.
- Base64 & URL encoding Encode and decode text.
- Format JSON Make JSON readable and validate it.