Skip to content
UniKit

HTML content replacer

Rewrite text nodes of an HTML document with find => replace rules, one per line, with case sensitivity and regex support; optionally collapse whitespace or emit a full document, and see how many hits each rule made.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

HTML + replace rules

Result

The result can be copied directly.

Paste HTML and replace rules to see the result

Characters: 0 · Lines: 0 · Replacements: 0 · Text nodes: 0

What this tool does

  • Bulk-edit copy inside a template without opening an editor.
  • Swap real content for placeholder text before sharing.
  • Collapse whitespace to get a compact fragment.

Example

Input

<p>Hello world</p>
---
world=UniKit

Output

<p>Hello UniKit</p>

The first part is HTML; after the `---` line comes one `find=replace` rule per line, with `#` comments allowed.

Frequently asked questions

Are attribute values changed?

No. Rules only touch text nodes; attributes such as `href` or `class` stay as they are.

How does regex mode work?

With "Treat find as regex" checked the pattern goes straight to `RegExp`; otherwise special characters are escaped so `a.b` matches the literal text.

What if a rule is malformed?

A line without `=` or `=>` throws `invalid-rule` instead of being skipped silently.

Is it WYSIWYG?

The logic side only rewrites and serializes text; the contenteditable editing lives in Tool.vue.

Keywords:html-editorfind replacedeveloper

Related tools