100% Free · MIT Licensed · Zero Dependencies

A Free WYSIWYG Text Editor
for Your Website

Drop a couple of files into your project and turn any plain <textarea> into a full rich text editor — toolbar, formatting, images, links and emoji included. No frameworks, no build step, no account required.

wysiwyg-editor.zip · ~14 KB · works in any HTML page
Screenshot of the WYSIWYG editor toolbar and editing area

Everything a Content Editor Needs

A complete formatting toolbar, built with plain JavaScript and CSS — nothing to install.

🅱️

Text formatting

Bold, italic, underline and strikethrough, one click away.

🎨

Color pickers

Native color pickers for both text color and background/highlight color.

🔠

Headings & paragraph styles

Switch between Paragraph, Quote, and Heading 1–6 from a dropdown.

📏

Font size & line height

Adjustable font size and line spacing for readable, well-formatted text.

↔️

Indent & outdent

Structure nested content with one-click indent controls.

🖼️

Insert image

Add images by URL or upload directly from the visitor's computer.

🔗

Clickable links

Insert links with custom text and an optional "open in new tab."

😀

Emoji picker

A ready-made grid of common emoji to insert at the cursor.

📄

Plain-form friendly

Enhances a real <textarea>, so existing forms and servers work unchanged.

Add It in 3 Steps

No npm, no bundler — just static files you can host anywhere.

HTML
<link rel="stylesheet" href="wysiwyg-editor.css">

<textarea id="content" name="content"></textarea>

<script src="wysiwyg-editor.js"></script>
<script>
  WysiwygEditor.create('#content');
</script>
1

Download and unzip the package, then copy the two files from dist/ into your project.

2

Link the CSS and script on any page with a <textarea> you want to enhance.

3

Call WysiwygEditor.create() with a selector. The textarea's value stays in sync automatically, so your existing form submission code needs no changes.

Free for Any Project

Released under the MIT license — use it on personal sites, client work, or commercial products.

No cost, ever

Free to download, use, and redistribute, with no license fees.

No attribution required

Credit is appreciated but not required by the license.

No account or tracking

Static files only — no sign-up, no external calls, no analytics baked in.

Modify freely

Restyle it, extend the toolbar, or strip out features you don't need.

Get Started

Includes the editor, an example page, and a full how-to-use guide.

Download wysiwyg-editor.zip
Includes dist/ (JS + CSS), an example page, README, and MIT license.