EVERYTHING XIAOMI
Get listed

Trix

Trix is a free, open-source WYSIWYG editor for composing messages, comments, articles and lists in web applications.

Place
#16 of 37
Score
6.2
Trix's website

What Trix is

Trix is a free, open-source WYSIWYG editor for composing messages, comments, articles and lists in web applications. Its internal document model converts input into editing operations and renders the document in the editor, which produces terse, consistent HTML. Default formatting includes bold, italic, links, strikethrough, headings, quotes, code, and bulleted and numbered lists. Developers can customize the toolbar and add actions through editor events and data attributes. Files can be dropped or pasted into the editor, but the host application must upload them and supply a permanent URL; supported image attachments receive previews by default. Trix can update a form’s hidden input when content changes and supports unlimited undo and redo. It supports evergreen, self-updating desktop and mobile browsers and is available in ESM and UMD formats or as an npm package. The project is made by 37signals and lists an MIT license. Its documentation warns that untrusted HTML placed directly inside a trix-editor can execute before sanitization.

Good

  • Free and open source under the MIT license.
  • Includes unlimited undo and redo.
  • Supports desktop and mobile evergreen browsers.
  • Image attachments receive previews by default.

Watch out

  • The host application must upload attachments and provide URLs.
  • Untrusted HTML can execute before sanitization.

Who it suits

Trix suits developers adding rich-text composition to web applications who want an open-source editor with form integration and customizable controls. Applications that accept attachments need to handle their upload and permanent URLs.

Verdict

Trix provides a broad set of editing tools in a free, open-source web editor. Developers should account for attachment hosting and avoid placing untrusted HTML directly inside the editor.

Plans and prices

From Trix's own pricing page, checked 9 Oct 2026.

All about pricing
PlanPriceWhat it gives you
TrixFreeOpen-source rich text editor; MIT license

The facts

Each one read from Trix's own pages, with the date it was checked.

What it does

Accessibility
The editor supports labels, aria-label, and aria-labelledby attributes for an accessible name.checked 9 Oct 2026
Attachment previews
Trix automatically previews GIF, PNG, WebP, JPG, and JPEG attachments by default.checked 9 Oct 2026
Attachments
Trix accepts files dropped or pasted into the editor, but the application must upload them and provide a permanent URL.checked 9 Oct 2026
Attachments and HTML
Trix supports embedded attachments and outputs terse, consistent HTML.checked 9 Oct 2026
Customization
Developers can customize the toolbar and add external actions through editor events and data attributes.checked 9 Oct 2026
Document model
It uses an internal document model to turn editor input into editing operations and render the document back into the editor.checked 9 Oct 2026
Formatting
Default formatting includes bold, italic, links, strikethrough, headings, quotes, code, and bulleted and numbered lists.checked 9 Oct 2026
Forms
Trix can integrate with forms and update an associated hidden input whenever editor content changes.checked 9 Oct 2026
Installation
Trix is available in ESM and UMD formats, can be included from an npm CDN, or installed as an npm package.checked 9 Oct 2026
Integration
Trix can be included from an npm CDN or installed as an npm package, and is bundled in ESM and UMD formats.checked 9 Oct 2026
License
The GitHub project identifies Trix as an open-source project and lists an MIT license.checked 9 Oct 2026
Open source
The project is open source and its GitHub repository identifies an MIT license.checked 9 Oct 2026
Output
It uses a document model, supports embedded attachments, and outputs terse, consistent HTML.checked 9 Oct 2026
Purpose
Trix is a WYSIWYG editor for composing messages, comments, articles, and lists in web applications.checked 9 Oct 2026
Sanitization
Trix uses DOMPurify to sanitize editor content.checked 9 Oct 2026
Security guidance
The documentation warns that untrusted HTML placed directly inside a trix-editor can execute before Trix sanitizes the editor value.checked 9 Oct 2026
Undo and redo
Editors support unlimited undo and redo.checked 9 Oct 2026

Where it runs

Browser support
Trix supports evergreen, self-updating desktop and mobile browsers.checked 9 Oct 2026

The company

Founded
2014checked 28 Sep 2026
Maker
Trix is made by 37signals, the creators of Ruby on Rails.checked 9 Oct 2026

Alternatives to Trix

All alternatives
  1. 1

    AiEditor

    Free planOpen sourceAndroidiOSWebAPI
    8.3$5,000 one-time
  2. 2

    Editor.js

    Free planOpen sourceAndroidiOSWebAPI
    7.7Free plan
  3. 3CKEditor 5 logo

    CKEditor 5

    Free planAndroidiOSWebAPI
    7.3From $160 a month
  4. 4

    Froala Editor

    AndroidiOSWebSelf-hosted
    7.1From $60 a month
  5. 5Tiptap logo

    Tiptap

    Free planWebAPISelf-hosted
    6.7From $49 a month
  6. 6Plate logo

    Plate

    Free planWebSelf-hosted
    6.6€299 one-time