HTML WYSIWYG Editor
Rich text editor with formatting toolbar that outputs clean HTML. Edit visually and copy the generated code.
HTML WYSIWYG Editor tool
Example
Input: Type Hello world, select the word world and click Bold
Result: Hello <b>world</b>
The formatting applied in the editor is written out as HTML tags, which you can copy or edit directly in Code view.
- Type or paste your content into the editor.
- Use the toolbar to add bold, italic, headings, lists, links and block quotes.
- Select text and click a toolbar button to apply or remove formatting.
- Watch the Generated HTML panel update, or click Code to switch to the code view.
- Edit the raw HTML in code view if you need fine control.
- Click "Copy HTML" to copy the markup for your project.
Writing HTML Visually With a WYSIWYG Editor
This WYSIWYG editor lets you format text as you would in a word processor, and gives you the HTML behind it. Type in the editor, use the toolbar for bold, italic, headings or lists, and the HTML updates below as you work. Select "world" in "Hello world", click B, and the code reads Hello <b>world</b>.
WYSIWYG stands for "what you see is what you get". The toolbar covers bold, italic, underline, strikethrough, headings H1 to H3, paragraphs, bulleted and numbered lists, block quotes and links. A Clear button removes formatting from the selected text. The editor runs on the editing feature built into your browser, so the exact tags can vary a little. Most browsers write b and i rather than strong and em.
Switch to Code view to edit the markup by hand, for example to add a class, a table or an image. When you switch back to Visual, the HTML is cleaned for safety. Scripts, iframes, forms and style blocks are removed, along with event attributes such as onclick and any javascript: links. Links added with the toolbar must start with https://, http://, mailto:, tel:, / or #.
Pasting from Word or Google Docs brings along their extra markup, such as inline styles and spans. For clean output, paste as plain text (Ctrl+Shift+V in most browsers) and format with the toolbar. Your work is not saved, so copy the HTML before you leave the page. Then shrink it with the HTML Minifier, or turn it into Markdown with the HTML to Markdown Converter.
Frequently Asked Questions
Related Tools
Markdown to HTML Converter
Convert Markdown text to clean, semantic HTML. Supports headings, lists, links, images, code blocks, tables, and more.
Text and WritingHTML to Markdown Converter
Convert HTML code to clean Markdown syntax. Preserves headings, links, lists, images, bold, italic, and code formatting.
Text and WritingHTML Minifier
Minify HTML by removing comments and collapsing whitespace between tags and inside tags to reduce document size.
Developer Tools