23 regex presets · runs in your browser
Data Cleaner
Paste messy text, a contact list or CSV rows, tick the clean-up steps you need, and copy the result. Each step is a regular expression you can learn from and reuse.
Clean-up steps
Steps run top to bottom. Each one is a regex you can open in the Playground and reuse in your own code.
Processed locally in your browser. 372 characters.
Clean output
Customer list (exported) Name: Ali Test , Phone: 0300-1234567 , Email: Ali.Test@Example.com Name: Sara Demo, Phone: 03121234567, Email: sara.demo@example.org Name: Sara Demo, Phone: 03121234567, Email: sara.demo@example.org <b>Joined:</b> 15/01/2026 — paid Rs. 1,250,000!!! CNIC 12345-1234567-1 · “VIP” customer’s note 👍 Visit https://example.com/offers, thanks,,,
6 of 23 steps on · 365 characters, 7 lines.
Why regex for cleaning data?
Most clean-up jobs are shape problems: extra spaces, inconsistent line breaks, dates written three different ways, phone numbers with and without dashes. Regular expressions describe those shapes precisely and run in milliseconds, without sending your data to anyone. Read How to Clean Messy Data with Regex for the reasoning behind each preset, and the lesson on replacing with $1 to write your own.
Frequently asked questions
- What does the Data Cleaner do with my text?
- It runs the steps you tick, in order, as regular-expression replacements inside your browser. Nothing is uploaded. The output updates as you type or change steps, and you can copy it or download it as a .txt file.
- Can I see the regex behind each step?
- Yes. When a step is switched on, its pattern and replacement appear underneath, with a link that opens it in the Playground so you can test it on other data or copy code for your language.
- Is the date conversion safe?
- It changes the shape of DD/MM/YYYY dates to YYYY-MM-DD. It does not check that a date exists, and it assumes day-first order, so do not use it on month-first (US) data.
- Does masking make data anonymous?
- Masking hides the most identifying part of emails, CNIC numbers and long phone numbers, which helps when sharing samples. It is not full anonymisation: names, addresses and other details in the text are left as they are.