Documentation / Diagon

In your browser

Last updated: 24 November 2026

Diagon also runs in a web browser, with nothing to install. Open diagon.soverain.cz or diagon.soverain.io and you are in the same Diagon as the desktop app: code on the left, the diagram on the right. It is free to use, there is no account, and your diagrams stay on your computer.

This page says what is the same as in the desktop app, what is different, and where things are kept. If you have not drawn a diagram yet, Getting started takes you through the first one; it reads the same for both.

What it is

The browser edition is the desktop app's own window, served as a web page. The editor, the language, the layout engine, the examples and the exports are the same code, so a diagram looks the same in both and a .diag file opens in either.

Nothing runs on a server for you. The page does all the drawing in your own browser, and the server only hands out the page's files. Your diagrams are never sent to it. See What the page sends and what it keeps below.

What you need

A current desktop browser: Chrome, Edge, Firefox or Safari. Diagon is laid out for a computer screen and a keyboard, not for a phone.

What is different

Desktop appIn your browser
Getting itDownload and install; it updates itselfOpen the address. Works on a Mac too
Drawing, live preview, moving boxes, undo, examples, helpYesThe same
MenuFile, View and Help in a menu barA menu under the name Diagon, at the left of the toolbar
Open and SaveFiles on your diskChrome and Edge: files on your disk, saved in place. Firefox and Safari: you pick a file to open, and Save hands you a copy as a download
Work in progressLives in the fileThe browser also keeps the text between visits
ExportPNG; SVG and GIF with a subscriptionThe same
Icons from any websiteShown, and carried in exportsShown. Carried in exports where the icon's website allows it
Licence keyKept on your computerKept in that browser
Connecting an AI assistantYes, with a subscriptionNo. The button says Desktop version feature only
Without a connectionWorksWorks while the page is open; opening it needs a connection

The menu

A browser tab has no menu bar, so the name Diagon at the left of the toolbar is a button. Under it is what the desktop app keeps in its File and Help menus and the toolbar has no button for:

  • Save as…
  • Examples — Login flow, System architecture, Brand icons and Arrow styles
  • Syntax cheatsheet and Documentation, which opens these pages
  • Connect an AI assistant…, Check for updates… and Subscription…

New, Open, Save, Export, Fit and Auto-arrange are in the toolbar, as in the desktop app.

Opening and saving files

A diagram is a plain text file here too, and it is saved on your own computer.

Chrome and Edge let a page work with a file on your disk. Open shows the browser's own file dialog. Save writes back into the file you opened; the first time, the browser asks whether the page may change that file. Save as… asks for a place.

Firefox and Safari do not let a page write to a file. Open lets you pick a file, and Save hands you a copy as a download, named after the file you opened (diagram.diag for a new diagram). The status bar reads downloaded instead of saved. If you save often, your downloads folder collects copies; keep the newest.

Your work between visits

The browser keeps the text you are working on, so that closing the tab or reloading the page loses nothing. When you come back, the text is there again as an untitled diagram. If it had changes you had not saved to a file, it is still marked as changed, and Save asks where to put it.

A few things to know about that copy:

  • It is kept in that one browser, on that one computer, for that one address. Another browser, a private window or the other address does not have it.
  • Clearing the site's data in the browser removes it.
  • It holds one text. With Diagon open in two tabs, the tab that changed last is the one that is kept.
  • A text of more than two million characters is not kept.

It is a safety net, not a place to keep diagrams: save what matters to a file. When you leave the page with changes that are in no file, the browser asks first.

Keyboard shortcuts

ShortcutAction
Ctrl/Cmd+SSave
Ctrl/Cmd+Shift+SSave as…
Ctrl/Cmd+OOpen…
Ctrl/Cmd+0Fit to screen

Ctrl+N belongs to the browser, which opens a new browser window with it whatever a page does. Use the New button. Ctrl+L is the browser's as well (it goes to the address bar): use the Auto-arrange button. Everything inside the code pane — Ctrl+Z, the suggestion list, Tab — works as in the desktop app; The editor has the list.

Exports and icons

Export has the same three entries: PNG, and with a subscription SVG and GIF. In Chrome and Edge the browser asks where to save the picture; in Firefox and Safari it arrives as a download. A picture that takes a while to make — a large GIF, a diagram with many icons — arrives as a download in Chrome and Edge too.

An exported picture carries its icons inside it, so that it shows them anywhere. In the desktop app Diagon fetches each icon itself. A page in a browser may show a picture from any website, but may only copy one if that website allows it. The icon libraries do — Simple Icons, Iconify, and picture files in public GitHub repositories — so their icons are in your exports. An icon from a website that does not allow it shows in the preview, is left out of a PNG or GIF export, and stays a link in an SVG export.

An icon address that begins with http:// does not load in the browser edition. Use the https:// address.

Subscription and licence key

Diagon is free to use in the browser as on the desktop, and a subscription adds the same things in both: flow lines, orthogonal routing, auto-colour, and the SVG and GIF exports. Licensing & updates has the list and the rules. One subscription is for one person, and its key works in the desktop app and in the browser.

To enter a key, open Subscription… in the menu under Diagon, or click Free plan in the status bar, paste the key and press Activate.

  • The key is checked in the page itself, with the browser's own cryptography. Entering it sends nothing.
  • The key is kept in that browser's storage for that address. Enter it once in each browser you use, and once for each of the two addresses if you use both. Clearing the site's data removes it; paste it again from your purchase email.
  • Renewal works as in the desktop app: in the last 14 days of a key, or after it has run out, the page asks soverain.cz for a fresh one, at most once a day, and sends the key and nothing else.
  • A browser that is too old to check a key says so, and Diagon stays the free app there.
  • A complimentary key that is locked to one computer works in the desktop app on that computer only.

Connecting an AI assistant

An assistant reaches the desktop app over a link that stays on your computer. A page in a browser tab cannot be reached that way, so the browser edition has no such link. Connect AI in the toolbar, and Connect an AI assistant… in the menu, open a note that says Desktop version feature only and leads to the download page. AI assistants describes the feature.

What the page sends and what it keeps

The page sends your diagrams nowhere, and there is no telemetry in it: it does not report what you do.

It makes three kinds of request:

  • Its own files. The page is served by Microsoft Azure. As with any website, the server sees the address your request comes from. It is not sent anything about your diagrams.
  • Icons. When a diagram names an icon with icon: https://…, your browser asks that website for the picture, as the desktop app does. The page asks without cookies; the website sees the name of the site that asked (diagon.soverain.cz or diagon.soverain.io) and nothing about your diagram. Only if that website does not let other sites read its pictures does the browser ask once more, the way it asks for a picture on any web page — and what goes with a request like that, the website's own cookies for example, is set in your browser, not in Diagon.
  • Licence renewal, if you have entered a key. It sends that key and nothing else.

It keeps, in your browser's storage for the address: the text you are working on, your licence key if you entered one, two dates — the latest day Diagon was open, and the day it last asked for a renewal — and two preferences, the theme and auto-colour. All of it stays in that browser, and clearing the site's data removes all of it. The App Data Annex lists the same in full.

Updates

There is nothing to install or update. Every visit gets the current version, and Check for updates… in the menu says so.

Related