1. What does this tool do
This free online text formatter applies a format only to text that matches your pattern. You can wrap matches in quotes or brackets, add Markdown (bold, italic, code, strikethrough), or change case (uppercase, camelCase, etc.). Use presets or custom regex; rules can run in chain (sequential) or override / first match (on the original text). No sign-up, no upload; everything runs in your browser.
2. How to use it
- Enter text — Paste or type the text to process.
- Add rules or click presets — Click a preset (Words, Acronyms, Emails, URLs, All text, etc.) or add a custom pattern. Each rule has:
- A regex pattern that decides what to match.
- A format (double quotes, backticks, bold, italic, UPPERCASE, camelCase, etc.) applied to each match.
- Set flags — Use g, i, m, s to control matching. Optionally enable Match as plain text for literal find.
- Live vs manual apply — Leave Live preview on to update as you type, or turn it off and click Apply now.
- Copy or hand off — Copy the result or use Use output to send it to Text Cleaner or Text Case Converter.
3. How it works
- Pattern + format per rule — Each rule selects text with a regex (or literal) and applies one format: wrap, Markdown, or case.
- Empty rules = passthrough — If no pattern is configured, output equals input.
- Rule application — Chain (default): output of rule N is input to rule N+1. Override: all rules run on the original text; overlapping regions go to the last rule. First match: same as override but first rule wins on overlap. On the first validation or runtime error, processing stops and the failing rule is highlighted.
- Limits — Same pattern and input length limits as Text Cleaner to reduce ReDoS risk.
All processing runs client-side. No data is sent to any server.
4. Use cases & examples
- Wrap in quotes — Match emails, then format as double quotes so
[email protected]→"[email protected]". - Markdown — Match words with
\b\w+\b, format as bold or italic for quick markup. - Code spans — Match variable-like tokens, format as backticks for inline code.
- Case only where it matches — Same as Text Case Converter: e.g. acronyms → UPPERCASE, rest → lowercase.
- Chain — First rule wrap in parentheses, second rule change matched part to title case.
5. Limitations & known constraints
- Pattern validated first — Invalid regex shows an error; no transformation is run.
- ReDoS — Complex patterns on very long text may be slow.
- JavaScript regex — Uses JS regex flavour.
- Case formats — Same behaviour as Text Case Converter for identifier-style case (camelCase, snake_case, etc.).