HTML WYSIWYG Editor

A simple rich text editor — format text visually and get clean HTML source code.

Start typing here or use the toolbar above to format your text...

HTML Source
(editor is empty)

Frequently Asked Questions

The editor uses the browser's built-in contentEditable feature and document.execCommand API to apply formatting. What you see in the editor is what the HTML will look like when rendered. The generated HTML source is shown below the editor in real time.
While technically marked as deprecated, document.execCommand is still widely supported in all major browsers and remains the simplest way to implement rich text editing. For production use, consider libraries like ProseMirror or TipTap.
Yes, you can paste text and formatted content directly into the editor. The browser will attempt to preserve formatting from the source. The generated HTML updates automatically as you type or paste content.