ISSUE 106  ·  29 NOVEMBER 2026 ELEN RSS
CodeCity
DESIGN № 0104

draw.io Desktop: draw diagrams on your own computer, with no account, and turn them into an image with one command

A free application for your computer — draw.io Desktop — for drawing diagrams: boxes, arrows, workflows, org charts, architectures. It works with no internet connection, no account and no key, and your files stay on your own disk instead of being uploaded somewhere. Its second half is the part most people never see: it also takes commands from the command line, so the same command turns a diagram into a PNG, an SVG or a PDF without opening a window, and it accepts Mermaid files as input. It is not a server you declare to an AI assistant; it is a program you run, under the GPL-3.0 licence, at zero cost in money.

draw.io Desktop: σχεδιάζεις διαγράμματα στον υπολογιστή σου χωρίς λογαριασμό, και τα βγάζεις σε εικόνα με μία εντολή

Two words first

Think of the org chart you once built in a presentation program: boxes with names, arrows showing who reports to whom. Or the flow of an order: the customer clicks, the system checks, the warehouse ships. Both are the same thing in a different shape: diagrams. Boxes and lines, arranged so that someone else understands what is going on — or so that you do, three months from now.

draw.io is a name you will meet in two forms, and it is worth telling them apart from the start. There is the page you open in a browser and start drawing on immediately, with nothing to install. And there is draw.io Desktop, the application you download and run on your own computer. This article is about the second one, because it has something the page does not: it takes commands from the terminal.

Third word: Mermaid. It is a way of writing a diagram as text. You do not draw; you write lines like "A becomes B" and "B becomes C", and out comes the shape with its boxes and arrows. It sounds odd until you see it. After that you understand why people who keep their diagrams in text files next to their code are fond of it.

Fourth: the command line. That is the text window, the one with no buttons. You type one command, press Enter, and the program does the work without opening a window. When draw.io runs that way, the job is called an export: it takes the diagram file and writes out an image, an SVG or a PDF, ready to use. That is the piece that makes the tool useful inside an automation — a flow that runs on its own, with no clicks at all.

And two words you will meet further down. Electron is how the application is built: with web technology, carrying its own browser inside. That is why it is heavy, and why the image it produces looks like what you see on a page. And a repository is where the code of an open project lives, with stars counting how many people bookmarked it — a sign of reputation, not of quality.

If you want one sentence: draw.io Desktop is a free program for your own computer where you draw diagrams with no account and nothing uploaded anywhere, and which can also run from the command line to produce the image by itself.

What it does

Inside its window you get a canvas. You drag shapes onto it, join them with arrows, type inside them, change colours and sizes. You can keep several pages in one file, one per stage of the same story, and work with layers so that you can hide for the moment whatever should not be visible in this particular conversation. The file is saved with a .drawio extension, and it is text inside. That means something very practical: you can put it in git next to your code, see what changed since the last version, keep a history and go back.

It also opens files that were not made here: Visio diagrams with a vsdx extension, comma-separated lists — the familiar csv files — which become tables, and Mermaid, with .mmd or .mermaid endings. The last one deserves its own line, because it solves a real problem. You have the diagram written as text, you open it, and from then on you push it around with the mouse as if you had drawn it yourself from scratch. The input formats are listed in the program's own help text, not in an advertisement.

And what it writes out. The export formats are PDF, PNG, JPG, SVG, XML and HTML — as the program's own help lists them. Next to them sits one that nobody notices and that changes the job: –embed-diagram, which puts a copy of the diagram inside the PNG, the SVG or the PDF. So the image you send someone is not only an image. Open it again in draw.io and it is the diagram, ready to be changed, with its boxes and connections. That holds for PNG, SVG and PDF, not for JPG.

The second half of the same program is the command line. With the –export flag, draw.io works as a conversion tool: you hand it a file, tell it which format you want, and it writes it. No window opens, nothing is asked of you, and at the end it leaves an exit code saying whether it worked. You can give it a folder instead of a file, and with –recursive it will walk into every subfolder, so one pass converts every diagram in a project. You can choose the page, the layers, the size, the border, a transparent background, a dark theme, and set a time limit so that one stuck file does not hold the whole flow waiting.

The project's own numbers, read from the registries on 28 November 2026. On GitHub, the application's repository has 64,193 stars, 5,816 forks — that is, copies of the code in other accounts — and 5 open issue reports. The licence is GPL-3.0: you may use it for any purpose without paying, and if you change the code and pass it on you must keep the same licence. The project was created on 25 May 2017, and the last change to the code is from 17 November 2026 the app's repository on GitHub.

The current release is 32.7.4, published on 17 November 2026, the same day as that last code change the release page for version 32.7.4. And the files downloaded from that page, counted one by one: the Windows installer 354,456 downloads, the Windows zip that needs no installation 28,153, the Windows MSI 27,860, the macOS dmg 47,033, the ARM64 installer 3,908. And one line only programs read, latest.yml — the feed installed applications poll to learn a new version exists — 276,261 downloads. That is the quietest indicator that the tool runs on many machines rather than a few.

One mix-up a lot of people make, and it is worth knowing before you go looking for star counts: the repository jgraph/drawio, the drawing engine that stands behind the editor, has 9,631 stars. The 64,193 belong to jgraph/drawio-desktop, the application you download and run. They are two different projects with a similar name. And one more clarification, so you do not waste time searching: draw.io Desktop exists neither on npm nor on PyPI. There is no npx or uvx route; you download a release file, the way you do for any desktop application.

Why it matters that the files stay local. A process diagram for a client is not decoration. It contains service names, people's roles, sometimes addresses and the path data takes. When the drawing is uploaded to a service, the question "where does it sit and who can see it" is answered by that service's terms of use, not by you. Here the file stays on your disk and nothing is sent; the project itself states that as its goal, and adds that the application is designed to be cut off from the internet apart from the update check the draw.io user guide. Two more details, so we do not baptise silence as a guarantee. The update check hits github.com once a day, and it can be turned off with the DRAWIO_DISABLE_UPDATE=true environment variable or the –disable-update flag. And if a diagram shows an image or a font from a web address, that request is made when you open the file: no diagram content leaves, but the request is visible from the other side.

And the second reason this article exists, the practical one. A diagram you build by hand once and rebuild by hand at every change is work you pay for two and three times. When the export becomes a command, the drawing becomes a step inside a flow: the file changes, the image is produced again, with no clicks and without having to remember which box you nudged last time. Mermaid does the same thing from the other end, from text towards the drawing.

What it does not do

First, and most important for anyone looking for a tool to give an AI assistant: draw.io Desktop is not an MCP server. There is no server to start, no port, no declaration in a settings file, no list of tools the assistant calls by name. It is a desktop application with a command line, and working with it happens the way it does with any other shell command: the assistant asks permission, runs it, reads the file that came out. That is good news for the conversation's context, because nothing sits loaded in it — but it also means you should not go looking for it in a list of servers.

Second: it does not draw the diagram for you. You do not write "build me an architecture for an online shop" and get it back. The command line exports what the file describes. There is one flag that repairs the model before export — it files edges at the right common ancestor, gives geometry to an edge written without any, grows a container that would clip its children — but it repairs, it does not invent. If the file is wrong, the image will show the wrong thing cleanly.

Third: it is not a collaboration tool. The application is designed to work cut off from the internet, with the update check as the single exception. So you should not expect a live canvas with a second person on the same drawing, or a link someone else opens and comments on. That part is left to the online editions.

Fourth: it is heavy, and you know it in advance. The application is built with Electron, which means it carries a whole browser with it. In our test, the release file that needs no installation was 173.1 MB and the folder after unpacking it reached 435 MB. On a disk with room to spare you will not notice; on a machine with little space you will notice immediately.

Fifth: the image depends on the engine of that embedded browser. That is the price of being a program like this. In practice it means a rare character — a font you do not have on your machine — can come out slightly different in the export from what you saw on screen, or be missing altogether and replaced by something close. On a diagram of names and arrows you will not tell; for a drawing you hand a client in their own typeface, open the image before you send it.

Sixth: it is not a new idea, it is mature. The project started in 2017 and has worked since. That is good news for stability and bad news for anyone looking for the innovation of the year; you will not find it here. And one consequence you rarely read alongside the good parts: the project does not accept changes from outside. The maintainers say so openly — they take bug reports and feature requests, but not third-party code, because any change in a body this size breaks something elsewhere. So if you hit a bug that annoys you, you do not fix it and send it in; you report it and wait.

How it is set up

You download the program from the release page. There is no package registry to fetch it for you, as there is none for most desktop applications. There are three roads for Windows, one for macOS and two or three for Linux; you pick according to which permissions you have and what you want to be left with afterwards.

The road with nothing to install

This is the one we used in the test, because it leaves nothing behind and needs no administrator rights. You download the file ending in .zip from the release page, unpack it into a folder of your choosing, and inside you find draw.io.exe. Nothing is written to your registry, no file types are registered, nothing is added to the programs that start with the system. When you tire of it, you delete the folder.

You work from inside the folder you unpacked it into, or you add that folder to PATH so you do not have to type the path each time. The check that the application answers is one command, run from the folder where you unpacked it:

draw.io.exe –version

It answers with the version number. Nothing else is needed.

The installer road

If you want it there permanently, with a menu icon and an association for .drawio files, you choose between two files of the same release, and the difference is not cosmetic. The .exe installer installs for all users of the machine and asks for administrator rights. The .msi installs for your own account only and does not ask for administrator rights. If you work on an office computer where you are not an administrator, the MSI is your road. The Microsoft Store build is also installable without administrator rights. Updates do not arrive the same way in every build: the installer downloads a new version in the background and applies it when you close the program, while the MSI and the zip tell you a newer one exists and send you to the release page.

macOS, Linux and ARM

On macOS you download the dmg. On Linux there is an AppImage, a deb and an rpm depending on the distribution. For machines with an ARM processor — specifically Windows on Arm — there are separate builds, installer and portable, that run without emulation. One detail only ARM users know: builds up to and including 31.4.4 did not update themselves, so anyone coming from that far back needs one manual install and then continues normally.

The first export

One Mermaid file and three commands. From the folder where the diagram lives, with draw.io.exe available on the PATH:

draw.io.exe –export –format png –output idea-design-site.png idea-design-site.mermaid

The same command, another format, for the vector file:

draw.io.exe –export –format svg –output idea-design-site.svg idea-design-site.mermaid

And for the file you hand to a printer:

draw.io.exe –export –format pdf –output idea-design-site.pdf idea-design-site.mermaid

One command at a time, one format at a time. At the end you check the exit code, and then you open the file.

What it needs to work

It needs a computer running Windows, macOS or Linux, and nothing else. No account, no key, no graphics card, no Python or Node installed, no database. It runs no background service and opens no port; when you close the window there is nothing left to remember. That is rare and worth saying out loud: most tools in this category want an account before they give you the basics. Here the website states it plainly, "no account required, no credit card" the draw.io website.

It needs disk space: 173.1 MB for the download, 435 MB for the folder once unpacked. If you keep it for all three platforms, budget roughly twice that and add a little.

It needs the network once, for the download, and afterwards only for the program's own life: the update check, once a day. If you work on an isolated machine, or simply do not want the request, you turn the check off with DRAWIO_DISABLE_UPDATE=true or the –disable-update flag, and the program does not touch the network at all. Drawing, opening, exporting: all of it works offline, because there is nothing to ask.

Finally, it needs you to know where you run it from. draw.io.exe is not a system command until you put it on the PATH yourself. If you run it from another folder, write out the full path. And if you use the command line inside an automation, give the full path to the input file as well, because the working folder of a flow is not always the one you think it is.

Using it with each assistant

Let us say this first and clearly, because it saves you time: draw.io Desktop is not an MCP server. It is declared nowhere, it has no port, it has no tools that an assistant calls by name. With every assistant the work happens the same way — one shell command, one approval, one file at the end — and the only thing that changes is how each one asks for permission. And because it does not sit inside the conversation's context, it costs nothing before you ask it for work.

Claude Code

Claude Code runs commands in the terminal once you give it permission, and afterwards it can read the file that came out. You describe what you want in words, and the command is one line. Here with the diagram embedded inside the image, so that it opens again and can be changed:

draw.io.exe –export –format svg –embed-diagram –output flow.drawio.svg flow.mermaid

You add nothing to a settings file and you start no server. The assistant asks permission for the command, you watch it run in the terminal, and then you can ask it to open the SVG and tell you what it sees inside.

Codex CLI

Codex CLI works inside the project folder and asks for approval before running anything. Same logic, with an image at double resolution and a little air around the drawing, for a presentation:

draw.io.exe –export –format png –scale 2 –border 10 –output flow.png flow.drawio

One thing to watch here. If Codex runs in a restricted environment without disk access, the command will fail with a clear message and zero files. That is not a draw.io fault; it is the environment. Grant access to the folder before drawing any conclusion.

Cursor

In Cursor the command runs in the integrated terminal, and the assistant sitting in the editor can run it once you approve. There is no entry to add to a list of servers, because there is no server. Here a file with several pages, coming out whole as one PDF:

draw.io.exe –export –format pdf –all-pages –output pages.pdf book.drawio

The –all-pages flag matters when the file has several pages, since without it you get the first one. The result is one PDF with every sheet in order — useful when you want to send one person five diagrams as a single attachment.

The same holds for all three: one line, one approval, one file. The gain is not that the assistant knows draw.io — it does not, and it does not need to, as long as you hand it the command. The gain is that it keeps the flow: it writes the diagram file, exports it, and tells you what came out.

Our own measurement

We downloaded the release file that needs no installation, 181,546,624 bytes — that is 173.1 MB — and unpacked it into an empty folder. After unpacking, the folder reached 435 MB. That number is not an impression: it is the size you should budget for.

The application answered from the command line on the first try: draw.io.exe –version printed 32.7.4, exactly the version the release page declares. No declaration, no key, no first run with a setup wizard.

Then the real work. We wrote a Mermaid file with three boxes and two arrows: Idea → Design → Site. Nothing else, no colours, no shapes. With the same command, changing only the format, three files came out:

Export to PNG: 13,846 bytes.
Export to SVG: 25,983 bytes, and we opened it to confirm it is a valid SVG file, not something else renamed.
Export to PDF: 11,743 bytes.

All three exports finished with exit code 0, without a window opening and without a graphics card being asked for. That is the point of this article: the same command that works by hand works inside an automation too, unchanged. And the Mermaid file, once opened in the program, does not stay an image: it becomes an ordinary diagram with boxes you move and arrows you drag — that is the application's default behaviour for .mmd and .mermaid files, and you have to ask explicitly for the opposite.

The third thing we learned is how little content a correct file holds. Three boxes and two arrows produced 13,846 bytes of PNG. That is not a measure of quality, it is a sense of scale: diagrams are light files, and the weight of the tool has nothing to do with the weight of the work. The 435 MB is the program, not your drawings.

In money: zero. The licence is GPL-3.0 and it asks for no account, key or subscription, not even for commercial use.

What it costs

Context of the conversation: zero. It is not a tool server, so it is declared to no assistant and loads no schemas into any session — a conclusion from how it works, not a token measurement.

Disk, measured: the Windows release file is 181,546,624 bytes, that is 173.1 MB, and the folder after extraction reaches 435 MB. That is the biggest price, and you pay it once.

Money: zero. The licence is GPL-3.0 and covers commercial use; it asks for no account, key or graphics card.

Time per export: I did not measure it, and I give no number I have not seen. The real cost is not time — it is the 435 MB sitting on disk for a diagram you will draw once a month.

Sources

The app's repository on GitHub: https://github.com/jgraph/drawio-desktop

The draw.io user guide: https://www.drawio.com/docs/

The release page for version 32.7.4: https://github.com/jgraph/drawio-desktop/releases/tag/v32.7.4

The draw.io website: https://www.drawio.com/

Εγκατάσταση

2 ΒΗΜΑΤΑ
  1. draw.io.exe --version
  2. draw.io.exe --export --format png --output idea-design-site.png idea-design-site.mermaid
draw.io Desktop: draw diagrams on your own computer, with no account, and turn them into an image with one command · ΑΠΟΤΕΛΕΣΜΑ
ΠΗΓΗ
github.com/jgraph/drawio-desktop