← Back to Blog
Story / Founder

A draw.io Page, a Mermaid File, and a ByteDiagram You Can Play

A draw.io Page, a Mermaid File, and a ByteDiagram You Can Play

The same system can be written in three ways: as a native draw.io page, as a Mermaid source file, and as a ByteDiagram canvas I can play. "drawio to mermaid" is a real search, and it usually asks for a conversion. This article is not a conversion guide. ByteDiagram does not convert a draw.io page into Mermaid, and it does not import either format. I compare what each representation is for, and I say which one I actually play when the review has to show the order of steps.

ByteDiagram is ours; I am its founder. It is not affiliated with draw.io or with Mermaid. This is not a Mermaid syntax lesson, and it is not a list of Mermaid alternatives. Those jobs have their own articles: Mermaid architecture diagram syntax, icons and examples, and best Mermaid alternatives for architecture diagrams. A sister piece, What draw.io as Code Gives You, and What to Build in ByteDiagram, stays on source files inside draw.io. This page stays on the three representations themselves.

What a native draw.io page is for

A native draw.io page is the diagram you edit with shapes and connectors. The export manual, checked on 16 November 2026, treats .drawio and .xml as the formats that "contain your full diagram, and can be opened in draw.io." In the comparison table, XML (.drawio) is "full source," suggested for backups, version control and hand-off, and "only useful inside draw.io." That is the right representation when the artefact you want to keep is the page itself: the libraries already on it, the labels already agreed, the file a teammate can open tomorrow in the same editor.

You can also place Mermaid onto that page without abandoning the native file. The official Mermaid manual, checked on 17 November 2026, documents Arrange, then Insert, then Mermaid. The source can become native shapes in a Mermaid container group, or a single non-editable SVG image. Once it is a container of shapes, the format panel can override Mermaid styles, and those overrides persist over later edits to the source. Repositioned shapes can be overridden if you regenerate from the source. The point for this comparison is simple: the native page can include Mermaid and still remain a draw.io page. It does not become a different product.

What a Mermaid file is for

A Mermaid file is text. The same manual, checked on 17 November 2026, describes Mermaid as a syntax similar to Markdown, used to describe a diagram and generate it from that text. That is why it sits comfortably in a repository next to the code it explains. It is also why people search for a way to get from a draw.io page to a Mermaid file: they want the diagram in a format a diff can show. I understand the pull of that request. I will not invent a converter, and I will not write the steps of one, because I do not ship that feature and I do not have a verified third-party method to recommend in this article.

The honest limit of the Mermaid file, for the job I care about, is the same limit as any other still source: the text describes the boxes and the arrows. It does not, by itself, play the request in order on a canvas with a timeline. You can keep the Mermaid file for the repository, and you can insert it into draw.io when you want to style it as shapes. Those are documented, useful jobs. They are not the walkthrough I need when a review has to watch the path.

If you came here for Mermaid syntax, the sister syntax article linked above is the right page. This one will not repeat a chart of diagram types, icon tricks, or example scripts beyond a short teaching path used in the figure. I also do not treat Mermaid as a lesser form of a draw.io page, or the other way around. They are good at different jobs: one is text that a repository can show in a diff, and the other is a full page in an editor that already has the libraries you use. The walkthrough I play is a third job, not a fourth syntax.

Why I do not convert one into the other to get a walkthrough

Converting a draw.io page into Mermaid, or Mermaid back into a draw.io page, still leaves you with one of those two representations. The first is a native file for draw.io. The second is text for a repository. Neither is a ByteDiagram canvas, and moving between them does not create a Play control, a timeline of bars, or an Animated flow option that was not already there. I am not writing conversion steps, and I do not claim a ByteDiagram converter. That is the only disclaimer this page needs.

The three representations can still sit together. A review pack can hold the .drawio map, the Mermaid source for the same path, and a walkthrough page whose job is the sequence. Deleting one to celebrate another is usually a loss. The original draw.io page may already carry libraries and labels the Mermaid file will not hold in the same way. The Mermaid file may be the copy a pull request can read at a glance. The walkthrough is the copy I actually play.

The ByteDiagram I actually play

The example on that third page is a short webhook path, drawn for this article, not taken from a live customer graph and not decorated with figures I cannot verify. The boxes are labelled Producer, HTTPS endpoint, App service, Queue, and Worker. The five steps are:

  • The producer sends the webhook to the HTTPS endpoint.
  • The endpoint forwards it to the application service.
  • The application service accepts the payload and writes it to the queue.
  • The worker reads the queue.
  • The worker processes the job.

The detail diagram below shows that same path three times: as a native page of boxes, as Mermaid text, and as a walkthrough with the steps marked and a Play control on the page. The Mermaid lines in the middle panel are a depiction of the teaching example, not a file I converted and not a claim that ByteDiagram generated them.

Three panels of the same webhook path: a draw.io page of five stacked boxes, a Mermaid file showing a flowchart LR from producer to worker, and a ByteDiagram walkthrough with numbered steps, a Play control and a timeline label

ByteDiagram, which is ours, is the third representation. "Start from a template" is the control that opens a stored layout. The canvas has an Auto-arrange button. Each step is given a bar on the timeline; Play or Pause runs the list. The edge toolbar also offers Animated flow (checked 23 Oct 2026). Those names are the ones on the product. This article is not a recorded tour of clicks.

On 12 November 2026 the guest canvas showed Templates, Auto-arrange, Timeline and Play, and the words Local only in the top bar. No account is required to edit that canvas. For a finished walkthrough, its Export menu includes PNG, SVG and Animated GIF (checked 19 Oct 2026). A still PNG or SVG can sit beside the draw.io page and the Mermaid file. People who only receive a file can still see the played order in an Animated GIF. None of that is a claim that ByteDiagram is faster to use, and none of it is a claim that Mermaid or draw.io should be discarded.

How I choose which representation to keep

I keep the native draw.io page when the file has to open again in draw.io, with the libraries and edits that already live there. I keep a Mermaid file when the diagram should sit in a repository as text. I keep a ByteDiagram page when the review has to play the path in order. Those three jobs can happen in the same week, for the same system, without a conversion between them.

If someone asks which file is "the" architecture diagram, I would rather name the job than force a winner. The map, the text, and the walkthrough are different artefacts. A longer evaluation of when draw.io itself is the better tool is when draw.io is still the better choice. The origin story of ByteDiagram is why I built ByteDiagram after years of fighting draw.io. Neither of those pages is a three-way format comparison, and this one does not try to be their substitute.

The choice stays honest only if I refuse the features I do not have. I do not import the draw.io page. I do not emit Mermaid from ByteDiagram in this article, because I am not verifying that claim here. I draw the walkthrough again when I need it, and I leave the other two files where they already work.

That also means I do not ask the ByteDiagram export to do the job of the source file. A PNG, an SVG, or an Animated GIF can leave the walkthrough and travel with the pack. They do not become a .drawio replacement, and they do not become a Mermaid file. If someone later needs to edit the original map, they open the original map in draw.io. If someone later needs to change the text in the repository, they edit the Mermaid source. If someone later needs to watch the order again, they play the walkthrough, or they open the Animated GIF that was exported from it.

FAQ

Does ByteDiagram convert a draw.io diagram to Mermaid?

No. ByteDiagram does not convert or import a .drawio file, and I do not claim a Mermaid exporter in this article. "drawio to mermaid" is a real search, but this page compares three representations instead of describing a conversion.

Can draw.io include Mermaid?

Yes. The official Mermaid manual documents Arrange, then Insert, then Mermaid. The source can become native shapes in a Mermaid container, or a single non-editable SVG. That still leaves you with a draw.io page, which is one of the three representations, not a substitute for a playable canvas.

Should I delete the .drawio file if I write a Mermaid version?

No. The export manual treats .drawio and .xml as the complete source to be opened in draw.io. A Mermaid file is text for a repository. They can sit together. Deleting the native page is not required, and this article does not recommend it.

What does the ByteDiagram page add if I already have the other two files?

A canvas I can play: a timeline, Play or Pause, and Animated flow on the edge toolbar, with an Export menu that includes PNG, SVG and Animated GIF (checked 19 Oct 2026). It does not replace the source file or the Mermaid file. It is the representation I use when the review has to watch the order of steps.

Sources

Keep the three representations honest

A draw.io page, a Mermaid file, and a ByteDiagram canvas can describe the same webhook path without pretending to be the same artefact. I keep the first for the editor it belongs to, the second for the repository, and the third for the walkthrough I actually play. No conversion is required, and none is claimed.

Keep the three representations honest

Use ByteDiagram, which is ours, to draw the walkthrough, play the steps, and export a still PNG or an Animated GIF. Leave the draw.io page and the Mermaid file as their own sources.

Visit ByteDiagram