Regex State Machine Visualizer - Online DFA Diagram
Enter a simple regular expression and see its equivalent Deterministic Finite Automaton diagram. Learn how regex engines work.
UD5 Toolkit
Online Railroad Diagram Generator — Visualize & Test Regular Expressions Instantly
Enter a regex above to generate its railroad diagram
| (alternation) operator. Loop arrows indicate repetition: a loop going forward and back means the element can repeat zero or more times (*), while a loop that requires going through at least once represents +. A bypass track (skipping an element) represents the ? quantifier (optional).
re, Java java.util.regex, and .NET regex. Most common syntax elements — character classes [...], groups (...), quantifiers *+?{n,m}, anchors ^$, and shorthand classes \d\w\s — are universally supported across flavors. Some advanced features like lookahead/lookbehind are rendered but may not be supported in all engines.
|, (2) loops that are too wide or too narrow for your intended matching behavior, (3) groups that don't encapsulate what you intended. Then use the "Test String Matching" section to run your pattern against sample text. Matches are highlighted, and you can see exactly which portions of the text are captured. Iterate between visualizing and testing until the behavior matches your expectations. The pattern breakdown section also provides a plain-English explanation of each component.
^ and $ to match line boundaries instead of just string boundaries; s (dotAll) makes . match newline characters too; u (unicode) enables full Unicode support including emoji and extended character classes like \p{...}. Toggle these flags above to see how they affect matching behavior in real-time.
\d matches non-ASCII digits, how lookbehind assertions work, and whether certain features like recursion or conditionals are supported. This tool runs in JavaScript, so it follows ECMAScript regex rules. If you're using Python, PHP, Java, or .NET, test with their respective engines for final validation. Always consult your language's regex documentation for edge cases.
Enter a simple regular expression and see its equivalent Deterministic Finite Automaton diagram. Learn how regex engines work.
Type a simple sentence and see a rudimentary Reed‑Kellogg diagram. Educational.
See the complete recursion tree for small Fibonacci or factorial calculations. Understand overlapping subproblems. Educational.
Add, remove, push, pop items and watch the data structure change visually. Supports arrays, stacks, and queues. For CS students.
Plot different Big‑O complexities on a chart. See how O(log n) stays flat while O(2^n) explodes. Educational reference.
Enter a number and see its Collatz sequence graphed. Watch the steps until it reaches 1. Mesmerizing math.
Enter text and see each character's 8‑bit binary laid out in a black‑and‑white grid. Beautiful data art. Local.
Paste prose and reformat so that each sentence starts on a new line. Helps with version control diffs.
Enter a decimal number and see a visual breakdown of bits, place values, and bitwise operations. Learn binary easily.
Enter terms and definitions and generate a clean `<dl>` HTML snippet. Great for glossaries and FAQs.
Watch classic sorting algorithms step through a randomized bar chart. Adjust speed and array size. Great for learning algorithm efficiency.
Easily format, validate, and beautify XML documents. Minify XML data with a single click. All processing happens locally in your browser for maximum privacy.
See a live bar chart of character frequencies as you type or paste text. Great for cipher cracking and linguistics.
Paste lines and convert them into bulleted lists with symbols like •, ‑, or →. Markdown friendly. Quick formatting.
Identify common grammar mistakes (subject-verb agreement, tense, articles) with simple rule-based analysis. Explanations provided. Not AI, purely rule-based and local.
Build your own Connections‑style puzzle with 4 categories and 4 words each. Share the puzzle as a code or link.
Paste plain text and turn it into a nested outline using indent levels or Markdown headings. Great for planning.
Type a word and see an animated semaphore figure spelling it out. Also enter flag positions to decode. Scouts and maritime fun.
Create a customizable scrolling marquee banner. Copy the HTML and CSS. For retro web projects or fun.
Step‑by‑step animated guide for abdominal thrusts on adults, children, and self. Essential emergency knowledge.
Transform regular text into the mocking SpongeBob‑style alternating case. Copy and paste for hilarious effect.
Create printable sight word flashcards from Dolch or Fry lists by grade level. Choose font size and card layout. Local only.
Paste HTML and see the order in which elements would receive focus via Tab key. Highlight issues. Local accessibility testing.
Create or solve logic grid puzzles (like Einstein's riddle). Enter clues and mark the grid. Practice logical deduction. Local only.
Type a simple sentence and get guided prompts to add who, what, where, when, why. Build richer sentences.
Paste your JSON‑LD or Microdata and test it against Google's Rich Results criteria. Get warnings. Local linter.
Convert any text into JavaScript‑style \uXXXX escape sequences and vice versa. Handles emojis. Useful for i18n development.
Write Q&A in a simple format and export as a CSV file compatible with Anki. Perfect for rapid card creation. Local.
Invent a fancy coffee blend name with origin and tasting notes. Perfect for a fictional café menu. All local.
Create categorized shopping lists (produce, dairy, meat, etc.). Add items, check them off, and print. Data stored in your browser. Never lose a list.