Dialogue Tree Editor
Draw branching dialogue as nodes: lines, choices, conditions and variables, then play it in the browser and export Yarn Spinner, Ink, JSON, CSV or your own format. The same canvas works as a planning board with cards, images, stickies and frames.
- Your boards stay in this browser. Nothing is uploaded to a server.
How it works
Open the Shopkeeper sample or start a blank project, then drag a port out of a node and drop it on empty canvas to add the next node.
Fill in the speaker and text of each Line, and give each Choice node one option per answer, each with its own output port.
Add variables, then use Condition and Set nodes so replies change what happens later. Press Play to walk the tree and check every path.
Open Export and pick Yarn Spinner, Ink, JSON, CSV or a custom template, then copy the result or download the file.
A dialogue tree is a graph: each node is one beat of a conversation and each wire is a possible next step. Keeping it as a picture makes loops, dead ends and unreachable branches easy to see, which is hard to do in a script file. This editor checks the graph for you and lists problems such as a missing End, an unconnected output or an unknown variable.
Node types
Start marks where a conversation begins. Line holds a speaker and text. Choice offers the player several options, each with an optional condition. Condition branches on an expression. Set variable changes a variable. Event fires a named command for your game. End closes a path, and Note is a comment that is never exported. Characters give a Line a speaker and a colour.
Variables and conditions
Variables hold numbers, true or false flags, or text. Conditions use a small expression language with and, or, not, comparisons and arithmetic, for example gold >= 10 and not met_guard. Set nodes use the same language: gold = gold - 10. Expressions are parsed by the editor itself and never run as code, and the Problems tab flags names that are not declared.
Testing in Play
Play walks the tree from a Start node. It shows each line as a chat, offers the choices whose conditions are true, greys out the ones that are false, applies Set nodes and shows the variable table as it changes. Back undoes the last step including variable changes, and Restart starts again. Nothing you do in Play changes the project.
Export formats
Yarn Spinner export writes one node per block with titles, speaker lines, options, jumps, conditions and variable declarations, ready for Yarn Spinner in Unity, Godot or other engines. Ink export writes knots, diverts, choices, conditions and variable assignments for the Ink runtime. JSON comes in two forms: the native format that this editor reopens with images and layout, and a flat list of nodes and links for your own tools. CSV gives one row per text, with ids, for translators and spreadsheets, and has a guard that stops cells starting with a formula character from running in Excel.
Custom export templates
If your engine wants its own format, write a template. It is plain text with placeholders and loops, and a live preview shows the output as you type. A short example that lists every line as speaker and text:
{{#each lines}}{{speaker}}: {{text}}{{/each}}
Templates are saved in this browser and can be attached to a project. They are interpreted by a small parser, never evaluated as JavaScript.
Custom node types
Edit types lets you design your own nodes: choose a name, a colour and an icon, add fields such as text, number, select or checkbox, and define input and output ports. Use it for quests, barks, shop items or anything else your game needs, then reference those fields in export templates.
Planning board
Start from the Planning board template to get Card, Image, Sticky note and Frame nodes. Cards have an owner and a status, frames group a region with a title, and images are embedded in the project. Use it for feature plans, quest outlines or story beats, and use auto layout to tidy a board in one click. Export it as SVG or PNG.
Privacy and storage
Projects autosave to IndexedDB in this browser a moment after each change, and several projects can be kept side by side. If you open the editor in two tabs and edit in both, a banner appears instead of silently overwriting. Browsers may clear storage, and iOS can evict it, so use Save file for anything you cannot lose. Images must be PNG, JPEG, WebP or GIF up to 15 MB, and SVG images are refused.
Keyboard shortcuts
| Keys | Action |
|---|---|
| Drag a port onto empty canvas | Quick add a node and connect it |
| Tab | Add a connected Line after the selected node (Shift + Tab adds a Choice) |
| Enter | Edit the selected node in the inspector |
| Delete or Backspace | Delete the selection |
| Ctrl or Cmd + Z / Y | Undo and redo |
| Ctrl or Cmd + C / V / D | Copy, paste and duplicate |
| Ctrl or Cmd + A | Select all |
| Space + drag | Pan the canvas |
| Ctrl or Cmd + scroll | Zoom |
| Arrow keys | Nudge the selection (Shift for bigger steps) |
| 1 / 0 / + / - | Fit the board, zoom to 100 percent, zoom in and out |
Frequently asked questions
Frequently asked questions
Is my dialogue tree uploaded to a server?
No. The editor, the Play test and every export run inside this page. Your projects are stored in this browser's IndexedDB and nothing is sent anywhere. Use Save file to keep a backup you control.
Which formats can I export to?
Yarn Spinner, Ink, native JSON that you can open again, a flat JSON of nodes and links, CSV for localisation, plain text, Markdown, SVG and PNG pictures of the board, and your own format through a custom template.
Can I make my own node types and export format?
Yes. Edit types lets you add node types with their own fields, ports and colours. Custom export templates use a small template language with a live preview, so you can match the data format of your engine without writing code.
How do share links work?
The Share link command compresses the board and puts it after the # in the address. Browsers never send the part after the # to a server, so the board travels only inside the link. Boards with images or very large boards are too big for a link, so use Save file for those.
Will my projects disappear if I clear my browser data?
Projects live in browser storage, which clears when you clear site data and which iOS can evict after a long time without a visit. Use Save file now and then to keep a copy, and open it later with File, Open.
Does it work on a phone or tablet?
Yes. Pan with one finger, pinch to zoom, drag from a port to connect, and use the bottom bar for adding nodes, layout and export. The panels open as bottom sheets, and inputs are sized so iOS does not zoom when you tap them.