Highlight Words in Text
Mark every occurrence of your words in a text with longest-match-first highlighting, entirely in your browser.
What the highlighter marks
Every occurrence of your words inside your text, wrapped in <mark> and
shown in the output pane. The text is HTML-escaped first, so the raw paste
is never inserted as markup — a <script> in the input renders as text,
not as a tag. Overlapping words resolve longest-match-first in a single
pass: cat wins over at inside it, and marks never nest.
How to use it
Paste the text, list one word per line, leave the case toggle where you want it and press Highlight. The output pane shows the marked text; Copy as text takes the words back out without the markup.
Worked example
Text The cat sat on the mat, words cat and at, case-insensitive: the
output wraps cat whole — it is not split into c plus at — while the
at inside sat and mat is wrapped on its own. An empty word list
returns the text escaped and unmarked, which is a valid answer, not an
error.
Why it runs in your browser
Escaping and marking are string work in this tab; the page needs no dictionary, no model and no round trip. Your text never leaves the machine, which matters exactly when the text is a draft nobody else should read.
The page wraps every occurrence of your words in marks for review.
The text is escaped first, so pasted markup renders as text, never runs.
Overlaps resolve longest-match-first in one pass; marks never nest.
Text, words, Highlight
Paste the text on the left, list one word per line, set the case toggle and press Highlight. The output pane shows the marked text with every match wrapped; an empty word list returns the text escaped and unmarked.
Cat stays whole when the list holds both cat and at — the alternation tries the longest word at each position, so a short word never splits a longer one.
- One word per line
- Case-sensitive toggle
- Copy as text without markup
Escape first, always
Escaping happens before marking, which is why a pasted script tag shows as text: no raw input is ever inserted as HTML. The guarantee holds for every input, not just the ones that look dangerous.
Copy as text takes the words back out without the marks, so the round trip costs nothing when the review is done.
How to use the text and word list
Paste the text into Text to search and list the words in Words, one per line, leaving Case-sensitive matching where you want it, then press Highlight. The Marked output pane shows every occurrence wrapped; an empty word list returns the text escaped and unmarked.
Copy as text takes the words back out without the markup, so the round trip costs nothing. The longest match wins overlaps, cat stays whole inside a search for cat and at, and pasted markup renders as text rather than running.
What to Expect
Best for
- Spotting keywords in a draft
- Reviewing repeated terms
- Checking overlaps resolve sanely
Not ideal for
- Full-text search ranking
- Regex pattern matching
- Editing the text in place
What this tool keeps
- The text byte-identical under the marks
- Overlapping words un-nested
- Pasted markup inert
What may need cleanup
- Word lists with trailing spaces
- Case folds you did not intend
- Very long texts, which mark more slowly
Common errors
- Expecting regex in the word list
- Reading unmarked as missing
- Pasting markup and fearing it ran
Example use cases
- Marking cat and at in one pass
- Reviewing a draft's repeated terms
- Copying the text back unmarked
Sample input
The cat sat on the mat; words cat and at.
Sample output
cat wrapped whole; the at in sat and mat wrapped alone.
Who this is for
- Editors reviewing drafts
- Writers checking repetition
- Anyone scanning a long paste
Frequently asked questions
Is my text uploaded for marking?
No. Escaping and marking are string work in this tab, which is exactly the point when the text is a draft nobody else should read.
What happens when two words overlap?
The longest match wins in a single pass — cat stays whole inside a search for cat and at — and marks never nest inside each other.
Is pasted HTML executed?
Never. The text is HTML-escaped before any mark is added, so a script tag in the input renders as text rather than running.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.