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.
Drag a slider to see wind speed in knots/mph/kmh and the corresponding sea conditions and land effects.
Compare standard keyboard layouts side-by-side. Click keys to see characters. Useful for learning alternative layouts.
Enter an amount and see a virtual stack of $100 bills with height comparison to everyday objects.
Simulate paint colors on a pre-loaded room photo by adjusting hue, saturation. Find your perfect shade before buying. Local canvas.
Test a regular expression against malicious inputs to detect catastrophic backtracking and ReDoS vulnerabilities. Educational.
Touch your screen and see the pressure and radius reported. Visualize force. Mobile developer tool.
See the current state of a Service Worker for your page: installing, waiting, active. Unregister or skip waiting. Developer utility.
Add, remove, push, pop items and watch the data structure change visually. Supports arrays, stacks, and queues. For CS students.
Paste a JSON object and see a dynamic, draggable tree graph representation. Excellent for debugging nested data.
Type a password and see a bar that fills based on estimated bits of entropy. Color‑coded feedback. No storage.
Create simple ASCII diagrams (arrows, boxes, trees) using a visual editor. Copy the plain text art. For comments and docs.
An interactive reference for regular expression tokens. Click a token to see its explanation and example. Learn regex faster.
Enter two tire sizes and see a side‑by‑side comparison of diameter, width, and speedometer error. Local math.
Paste a list of JavaScript values and see them pretty‑printed as if in the browser console. Great for debugging.
Upload an audio clip and generate an animated GIF of its waveform dancing. Shareable sound snippet. Canvas magic.
Paste HTML/CSS snippets or enter properties to test how z‑index and stacking contexts interact. Real‑time example.
Adjust margin, border, padding, and content sizes interactively and see the rendered box model. Get the exact CSS. Teach or learn layout.
Draw walls on a grid and watch A*, Dijkstra, or BFS find the shortest path. Interactive animation. Learn graph traversal.
Watch classic sorting algorithms step through a randomized bar chart. Adjust speed and array size. Great for learning algorithm efficiency.
Drag and drop light sources, camera, and subject to plan a photo shoot. Export diagram as image. Simple and visual.
Click through the rock cycle to see how each rock type transforms into another. Animated arrows and descriptions.
Upload a small file to see each byte as a block, color-coded by value. Visualize the structure of binary data. Client-side.
Get the full electron configuration and orbital box diagram for any element. Learn the Aufbau principle. Fast and local.
Write Mermaid markdown and instantly see the rendered flowchart, sequence diagram, or Gantt chart. Copy SVG output. Browser-side rendering.
See interactive Venn diagrams for SQL JOINs: INNER, LEFT, RIGHT, FULL, CROSS. Understand set theory visually. Local static site.
Visualize audio in real time from your microphone or uploaded audio file. See the waveform dance. Uses Web Audio API locally.
Pull out all URLs and links from text. Extract domains, paths, and protocols. Perfect for SEO scraping or analyzing text documents. Client-side execution.
Extract all email addresses from a text block using a regex pattern. Deduplicate and sort results. Handy for lead extraction. Data stays on your machine.