Text Cleaner
Remove extra spaces, empty lines, HTML tags, smart quotes and invisible characters in one click.
Open toolTest JavaScript regular expressions with live match highlighting, capture groups and replace preview.
Write a pattern, toggle flags (g, i, m, s, u, y) and see every match highlighted in your test text, with a table of capture groups and named groups. A replacement field previews the result of String.replace, including $1 and $<name> references.
Patterns run in a background thread with a time limit, so a runaway expression (catastrophic backtracking) is stopped instead of freezing your browser. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
JavaScript (ECMAScript) regex
Processed in this browser
Background thread. Nothing is uploaded.
Your result
Ready to download or copy
Enter a regular expression and choose flags.
Paste the text to test against.
Inspect highlighted matches and groups, and try a replacement.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Paste the text to test against.
Inspect highlighted matches and groups, and try a replacement.
Remove extra spaces, empty lines, HTML tags, smart quotes and invisible characters in one click.
Open toolPretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Open toolPercent-encode text for URLs, query strings or forms, or decode encoded links with a breakdown of every parameter.
Open toolPaste a regular expression and see every token, group, quantifier and flag explained in plain English, with syntax from other engines flagged.
Open tool