WaveDrom Timing Diagram Builder
Write WaveJSON and see a publication-ready timing diagram as SVG — rendered locally, with a character legend and exports.
WaveJSON source
435 chars · 0 warning(s)Rendered diagram
3 signal(s) · 320×224pxDetails
Paste a WaveJSON signal description and see a timing diagram update as you type. The built-in legend explains every wave character and inserts it at the caret, validation reports JSON offsets and suspicious wave characters, and the render can be exported as scalable SVG or a 2× PNG. Five starter diagrams cover clocks, buses, SPI, handshakes, markers and grouped lanes. Everything — including the SVG renderer — runs locally in the browser, so protocol details never leave the tab.
More examples
Clock and data bus
{"signal":[{"name":"clk","wave":"p.....|..."},{"name":"addr","wave":"x.3=x.4=","data":["A0","A1","A2"]}]}A clock plus a labelled address bus; click the data marker legend entry to insert another label slot.
SPI transaction
{"signal":[{"name":"SCK","wave":"p...p...p"},{"name":"MOSI","wave":"101010101"},{"name":"CS","wave":"0.......1"}],"edge":[{"from":"CS","to":"SCK","label":"sample"}]}An annotated bus transaction with an arrow drawn from chip select to the clock.
Grouped lanes
{"signal":["Bus interface",[{"name":"CLK","wave":"p...."},{"name":"CMD","wave":"x.3=x","data":["READ","WRITE"]}]]}Nested signal arrays create group headers and keep related lanes together.
Examples
Clock and bus
{"signal":[{"name":"clk","wave":"p...."},{"name":"bus","wave":"x.3=","data":["A0"]}]}SVG with a pulsing clk row and an A0-labelled bus blockThe = marker consumes the next label from data.
Unknown character
{"signal":[{"name":"irq","wave":"01q0"}]}Warning for "q"; the diagram still rendersCharacter checks are advisory so a new grammar letter never blocks an otherwise valid document.
Trailing comma
{
"signal": [],
}Error with line and columnThe parser reports the JSON offset and keeps the previous valid render visible.
About this tool
WaveDrom Timing Diagram Builder turns a WaveJSON signal description into a timing diagram SVG as you type. Write signal names and wave strings such as `p....` for a clock or `x.3=x.4=` for a labelled bus, and the diagram updates immediately — no editor account, no upload, no build step.
The character legend explains the grammar in one place: levels (0, 1, h, l), undefined and high-impedance states (x, z), clock pulses (p, n and their arrowed variants), data markers (= and 2–9), continuation (.) and gaps (|). Click a legend row to insert its character at the caret, or filter the legend when you only care about clocks or buses.
Validation runs before every render. Broken JSON is reported with a line and column, unknown wave characters and duplicate signal names become warnings, and the last valid diagram stays visible (dimmed) while you repair the source. Five examples cover a clocked data bus, an SPI transaction, a valid/ready handshake, marker arrows and grouped lanes.
The output is a standalone SVG with inline colours, so it can be copied, downloaded or exported as a 2× PNG. The renderer runs entirely in the browser tab; protocol internals in your diagrams are never sent anywhere.
What this tool does not do
- The renderer covers the common WaveJSON subset; it is a compact local implementation rather than the full wavedrom npm renderer.
- Only one image is exported at a time: a standalone SVG or a PNG at 2× scale.
- Deep-scan JSONPath-like features, register bit-field diagrams and node styling are not implemented.
- Very wide diagrams are shown in a scrollable pane; use a smaller hscale if you need them to fit.
- Drafts are not persisted between visits; keep your WaveJSON source in your own files.
How to use this tool
Start from an example
Pick one of the five gallery chips for a clocked bus, SPI, handshake, markers or grouped lanes, or type your own WaveJSON into the editor.
Edit wave strings
Use 0/1 for levels, p/n for clocks, x/z for undefined and high-impedance, and = or 2–9 with a data array for labelled buses. A dot repeats the previous value.
Consult the legend
Open Show legend to see every supported character with its meaning, filter it, and click a row to insert the character at the caret.
Fix validation feedback
Errors show the JSON line and column; warnings list unknown characters or missing data arrays. The last good diagram stays visible while you edit.
Tune and export
Change hscale, zoom or the dark diagram palette, then copy the SVG source, download the .svg file or export a 2× PNG.
Use cases
Document a bus protocol
Draw clock, chip-select and data lanes with arrows for setup or latency annotations, then paste the SVG into documentation.
Teaching digital logic
Use the legend as a compact grammar reference while preparing figures for lectures or lab sheets.
Design reviews
Iterate on a waveform in a pull request description by pasting the WaveJSON source and sharing the exported SVG.
Offline-friendly authoring
Keep protocol diagrams local: source, validation and rendering never leave the browser tab.
WaveJSON keys handled by the builder
| Key | Meaning |
|---|---|
| signal | Array of signal objects or nested arrays for groups; a string becomes a group heading |
| name / wave | Signal label and its per-cycle wave string |
| data | Labels consumed by = and numeric (2–9) data markers |
| head / foot | Optional caption text plus tick/tock cycle numbering |
| edge | Optional arrows between named signals with a label |
| config.hscale | Horizontal scale factor (0.5, 1 or 2 in the toolbar) |
The renderer draws the common WaveJSON subset locally; deep WaveDrom features such as bit-field registers and signal groups with node styling are outside its scope.
Common mistakes
Mistake:Using a data marker without a data array.
Fix:Add data: ["A0", "A1"] to the signal, or use numeric markers 2–9 with matching labels.
Mistake:Expecting a dot to start a new level.
Fix:A dot extends the previous value; use 0, 1, h or l to set an explicit level.
Mistake:Mixing up p and n clock polarity.
Fix:p starts low and rises; n starts high and falls. P and N add an edge marker.
Mistake:Treating validation warnings as parse errors.
Fix:Warnings are advisory: the diagram still renders. Only errors block the render.
Mistake:Assuming head and foot create arrows.
Fix:Arrows come from the edge array; head and foot carry captions and tick/tock numbering.
Frequently asked questions
What do the wave characters mean?
0 and 1 are low and high levels; h and l are explicit high and low; x is undefined and z is high-impedance. p and n draw clock pulses (p rises first, n falls first), P and N add an arrow marker. Use = or the digits 2–9 for labelled bus values, . to extend the previous value and | for a gap. The on-page legend lists every supported character and clicking one inserts it at the caret.
Can I label bus values?
Yes. Add a data array to a signal and use = markers or digits 2–9 in its wave string. For example wave: "x.3=x.4=" with data: ["A0", "A1", "A2"] places those labels in successive bus blocks. A signal that uses data markers without a data array produces a warning.
How do I export SVG or PNG?
Use Copy SVG to put the standalone SVG markup on the clipboard, Download SVG to save a .svg file, or PNG 2× to rasterise the diagram at twice its pixel size. The SVG carries its palette as inline attributes, so the dark diagram theme is preserved in the exported file.
Does it support multiple clock domains and groups?
You can draw any number of clock signals side by side; each has its own wave string, so independent domains are simply independent rows. Nested arrays inside signal create group headings such as 'Bus interface'. The 'Grouped lanes' example demonstrates both grouping and multiple related clocks.
What happens when my JSON is invalid?
The parser reports the error with a 1-based line and column, highlights the offending line, and keeps the last valid diagram visible but dimmed below the error. Fix the source and the diagram updates as you type. Warnings — unknown characters, duplicate names or missing data arrays — do not block rendering.
Is my diagram uploaded anywhere?
No. Parsing, validation, SVG generation and PNG export all run in your browser tab. Protocol descriptions and signal names stay local; nothing is stored on a server and no network request is made.
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.gitattributes Generator
Build .gitattributes rules for line endings, Git LFS, GitHub linguist marks and merge drivers — with a one-line explanation for every rule.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
A/B Test Sample Size Calculator
Compute required sample size per variant and test duration from baseline conversion rate, minimum detectable effect, alpha and power.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.