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.).