Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Trix

trix-editor.org

  • Free plan
  • Web
7.4 Club score Visit trix-editor.org

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 back into the editor, which outputs consistent HTML. Default formatting includes bold, italic, links, strikethrough, headings, quotes, code, and bulleted and numbered lists. Editors support unlimited undo and redo, while developers can customize the toolbar and add actions through editor events and data attributes.

Users can drop or paste files into the editor, but the host application must upload them and provide permanent URLs. Trix previews GIF, PNG, WebP, JPG and JPEG attachments by default, and can update an associated hidden form input when content changes. It supports evergreen, self-updating desktop and mobile browsers and can be installed as an npm package or included through an npm CDN in ESM or UMD format. The project is made by 37signals and uses the MIT license. Its documentation warns that untrusted HTML placed directly inside a trix-editor can run before sanitization.

Who it suits

Trix suits developers adding rich-text composition to web applications. It is a fit for projects that can handle attachment uploads and want to customize editor controls or connect content to a form.

Good to know, and what to watch

  • Free and open source under the MIT license.
  • Supports common text formatting and unlimited undo and redo.
  • Previews several common image attachment formats.
  • Can update a form’s hidden input as content changes.
  • Supports accessible-name attributes.
  • The host application must upload attachments and provide permanent URLs.
  • Untrusted HTML inside the editor can run before sanitization.
  • Supports evergreen, self-updating browsers.

Trix

Free

Free plan

The verdict

Trix provides a developer-focused rich-text editor with formatting, attachment and form-integration support. Applications need to manage attachment hosting and avoid placing untrusted HTML directly in the editor.

What the maker publishes

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

Checked against the maker's pages on 9 Oct 2026.