Regex Visualizer
Paste a regex and see the token tree (literals, classes, groups, quantifiers) in ASCII — helps understand complex expressions. Everything in your browser.
Visualise a regex's structure
A complex regular expression, full of nested groups and quantifiers, is hard to read even for whoever wrote it. This tool opens the regex into an ASCII token tree and reveals the structure hiding behind that dense line of symbols.
The elements get separated out (literals, character classes, groups, quantifiers) and arranged in a hierarchy, making it clear what sits inside what and how the pieces fit together. It helps a lot when you inherit someone else's regex, need to debug a pattern that won't match, or just want to learn how more elaborate expressions work.
The analysis happens in your browser and nothing gets sent anywhere. Paste the expression, see the tree right away, and turn a cryptic line into something readable.
Frequently asked questions
Does the output really come out as a tree, with indentation?
Should I paste the regex with the slash delimiters?
Why did my escaped bracket show up as a capture group?
Related Tools
Regex Cheatsheet
Quick reference of the main regular expressions — quantifiers, classes, anchors, groups, lookarounds, flags. With clickable examples and explanations. Everything in your browser.
HAR Viewer
Read pasted HAR (HTTP Archive) and list requests with method, status, URL and time.
Regex Tester
Test regular expressions in real time. See highlighted matches and captured groups.
CSV Validator & Viewer
Validate, parse and visualize CSV data in table format. Automatically detects delimiters (comma, semicolon or tab) and highlights formatting errors.
IPv6 Shortener / Expander
Expand an IPv6 to its full form, or shorten using :: notation.
.mailmap (Git) Generator
Map inconsistent names and emails to a single author in Git, improving stats and shortlog. Official format.