wordpaste
smrifat1411.github.io- Category
- Developer Tools
- Rank
- No. 1811Tools index
Previous survey · No. 1756 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Data Processing
- GitHub
- 10 stars
- Date
About
wordpaste is a JavaScript library that cleans HTML pasted from Microsoft Word and Google Docs. It strips Word's private mso styles and unwanted formatting, rebuilds real lists, and converts equations from OMML or MathML into editable LaTeX instead of leaving them as screenshots. It is one function with no dependencies and plugs into Tiptap, ProseMirror, Lexical or a plain contenteditable.
At a glance
wordpaste cleans clipboard HTML from word processors and can convert Word equations into editable LaTeX. It is worth trying if users paste formatted documents into a web editor and need to preserve meaning without importing all of the original styling.
Good fit
Rich-text editor developers supporting documents with equations, tables or lists.
Consider something else when
Use plain-text paste if formatting and math do not matter, or a document importer if you need complete layout fidelity.
Start here
Paste a sample with one equation, a nested list and a table. Check that the equation stays editable and that the editor preserves the structure you need.
Cost and requirements
The MIT-licensed package runs in the browser and plugs into an editor’s paste handling. Equation display and editing depend on the surrounding editor.
Limits to know
Cleanup intentionally discards some styling. Review the result with your editor’s normal HTML security rules and test the clipboard formats your users produce.
Sources checked 2026-11-05. Source-based assessment.
Tags
Tech Stack
Media

Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.