ToDiagram Format

ToDiagram format (.todiagram) lets you define your own node and edge structures with a flexible schema. Create, visualize, and edit diagrams tailored to your domain by describing your data in the ToDiagram format.

  • Free for files up to 300 KB
  • No account needed
  • Processed in your browser
1{
2"nodes": [
3{
4"id": "web",
5"label": "Web app",
6"iconUrl": "logos:nextjs-icon",
7"fields": { "framework": "Next.js" }
8},
9{
10"id": "api",
11"label": "Orders API",
12"iconUrl": "logos:nodejs-icon",
13"fields": { "port": 8080, "replicas": 3 }
14},
15{
16"id": "db",
17"label": "PostgreSQL",
18"iconUrl": "logos:postgresql",
19"fields": { "version": 16 }
20},
21{
22"id": "queue",
23"label": "Job queue",
24"iconUrl": "logos:rabbitmq-icon"
25}
26],
27"edges": [
28{ "from": "web", "to": "api", "label": "REST" },
29{ "from": "api", "to": "db", "label": "SQL" },
30{ "from": "api", "to": "queue", "label": "jobs" }
31]
32}
Valid32 lines JSON
A small system drawn from the custom format: a web app, an API, a database and a queue
USED BY INDIVIDUALS AT
AmazonNetflixAtlassianDeloitteContentful
OTHER FORMATS
WHAT YOU CAN DO

Define your own schema

Use our open JSON schema to model nodes, edges, and nesting so ToDiagram format files fit your domain. Represent real hierarchies and metadata without constraints.

Why use the ToDiagram format

Visualize data that doesn't fit JSON/YAML/CSV with a flexible format. Map processes, architectures, or domain models with full control.

Flexible schema, your rules

Extend nodes and edges with your own fields and metadata. Keep diagrams expressive while staying easy to edit and share.

Export and share

Export PNG/SVG for proposals and docs or share a link so others can explore your .todiagram files in the browser. Great for stakeholder reviews and handoffs.

THE EDITOR

Why use the ToDiagram format?

Every view of the same file

Graph, tree, table and charts, side by side.

Edit on the diagram

Double-click a key or a value. The file changes with it.

Search and collapse

Find any key or value and fold the rest away.

Compare two versions

See what changed between two files.

Validate and query

JSON Schema, jq and JSONPath built in.

Bring data from anywhere

Paste, drop a file, use a live URL or connect Supabase.

FREE AND PRO

Free for files up to 300 KB. Pro for everything larger.

See pricing
FREE
  • Create diagrams up to 300 KB
  • Store and share up to 3 diagrams
  • PNG, JPEG, SVG & MP4 export
PRO
  • No diagram size limit
  • Edit directly on the diagram
  • Save 200 diagrams (vs 3)
  • High-res image exports
FAQ

Questions,
answered.

How do I create a ToDiagram format diagram?
To create a ToDiagram format diagram, select "ToDiagram format" from the document format dropdown in the editor (see the format switcher at the bottom of the editor). This enables you to edit and visualize your data using the ToDiagram schema. You can define your own nodes, edges, and properties according to the schema, and see your structure rendered as an interactive diagram.
What is the structure of the ToDiagram format?
The format consists of a 'nodes' array (with optional nested nodes) and an 'edges' array. Each node and edge can have custom properties. The full schema is available in the application and can be referenced for validation. Files use the .todiagram extension.
Can I extend nodes and edges with my own fields?
Yes, you can add any additional fields to nodes and edges. These will be displayed in the diagram and can be used for custom rendering or metadata.
Is there an example of a ToDiagram format diagram?
Yes, the documentation and editor provide sample data and templates to help you get started with the ToDiagram format.
FREE TO START

Try it on your own data

Paste a file or drop one in and read it as a diagram. No account needed.