Online Diagram Tool

Draw flowcharts, architecture sketches and wireframes on an infinite hand-drawn canvas, then export PNG or SVG or save an .excalidraw file. Autosaves locally.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Online Diagram Tool?

The Online Diagram Tool embeds Excalidraw, the open-source whiteboard, in a 600px-tall panel with a fullscreen button. You get rectangles, diamonds, ellipses, arrows and lines that bind to shapes, freehand drawing, text, images and an infinite canvas you can pan and zoom.

Excalidraw's own menu handles files: Export image saves PNG or SVG or copies to the clipboard, Save to saves an editable .excalidraw JSON file, and Open loads one back. Your current scene is also written to this browser's localStorage on every change, so closing the tab does not lose work.

Diagrams stay in your browser; nothing you draw is sent to a server. The editor loads its code from this site and its hand-drawn fonts from a public CDN, and the Browse libraries button opens Excalidraw's public library site in a new tab.

  • Full Excalidraw editor with an infinite, zoomable canvas
  • Arrows that bind to shapes and follow them
  • PNG and SVG export, copy to clipboard, .excalidraw save and open
  • Light and dark themes and a fullscreen mode
  • Autosaves in your browser; diagrams are not uploaded
Read the guide: Sketching and Diagramming in the Browser: Canvas, Excalidraw and When to Use Each

Updated

How to use the Online Diagram Tool

  1. Pick a shape from the toolbar at the top, or press its number key (1 to 9), and drag on the canvas to draw it.
  2. Draw arrows from one shape to another; they snap to the shapes and stay attached when you move them. Double-click any shape to add text inside it.
  3. Change stroke, fill, stroke style and sloppiness in the panel on the left, and use the button above the canvas for fullscreen (Escape exits).
  4. Open the main menu to Export image as PNG or SVG, Save to an .excalidraw file, Open an existing one, toggle dark mode or reset the canvas.

Worked example

A three-step request flow

Input

Three rectangles labelled Browser, API and Database, joined by arrows

Output

An editable diagram you can export as SVG for a README

Draw the boxes, then drag arrows from the edge of one to the next. Move the API box and both arrows re-route. Tick Embed scene in the export dialog and the SVG can be dropped back into Excalidraw later for edits.

Background and insight

Excalidraw started in 2020 as a side project by Christopher Chedeau and grew into one of the most used whiteboard tools for engineers. Its look comes from Rough.js, which draws shapes with slight wobble so they read as sketches. That is a feature: a diagram that looks unfinished invites comments on the idea rather than on pixel alignment.

Under the hood a scene is a JSON array of elements, each with an id, type, position, size, style and version number. An arrow stores the ids of the shapes it is bound to, which is why it follows them when you drag. Because the format is plain JSON, .excalidraw files diff reasonably in Git, and an exported SVG or PNG can embed the scene so it can be reopened later for editing.

Diagramming tools fit on a spectrum. Text-first tools like Mermaid or PlantUML generate diagrams from code and are easy to version. Precise tools like draw.io handle large formal diagrams. A sketch tool is fastest for thinking out loud, design reviews and incident write-ups, where speed matters more than perfect layout.

Common use cases

  • Architecture sketches

    Draw services, queues and databases for a design doc or a system design interview.

  • Flowcharts

    Map a sign-up flow, an on-call escalation path or a decision tree with boxes, diamonds and arrows.

  • Wireframes

    Block out screens with hand-drawn boxes so reviewers focus on layout, not colors.

  • Incident timelines

    Sketch what happened between components during an outage for a postmortem.

  • Teaching

    Explain an algorithm or data structure live on an infinite canvas during a call.

Tips and limitations

  • localStorage holds one scene per browser. Save an .excalidraw file before starting a second diagram if you want to keep the first.
  • Export to SVG for documentation; it stays sharp at any zoom and is usually smaller than PNG for line drawings.
  • Turn on Embed scene when exporting so the PNG or SVG can be reopened for editing later.
  • Hold Shift while drawing to get perfect squares, circles and straight lines.
  • Large embedded images make the saved scene large and can hit the browser storage limit. Keep screenshots small.

Sources and further reading

  1. excalidraw/excalidraw: Virtual whiteboard for sketching hand-drawn like diagrams, Excalidraw on GitHub. Source code of the open-source whiteboard this tool embeds
  2. One Year of Excalidraw, Excalidraw. Christopher Chedeau on how the project started in 2020
  3. JSON Schema, Excalidraw developer docs. The structure of an .excalidraw scene file
  4. Rough.js, Preet Shihn. The library that gives Excalidraw shapes their hand-drawn look
  5. Mermaid, Mermaid. A text-first diagramming tool, for comparison

Frequently asked questions

Where are my diagrams stored in the diagram tool?

In your browser's localStorage, under one key that is updated on every change. That survives reloads but not clearing site data, private windows or a different device. Use Save to in the main menu to download an .excalidraw file for anything you want to keep long term.

Can I export an Excalidraw diagram as SVG?

Yes. Open the main menu, choose Export image, and pick SVG or PNG. You can include or drop the background, export in dark mode and, if you turn on Embed scene, the file carries the diagram data so it can be opened in Excalidraw again for editing.

Is the diagram tool the same as excalidraw.com?

It runs the same open-source Excalidraw editor package, so drawing and files work the same and .excalidraw files move freely between them. Live collaboration and shareable links from excalidraw.com are not part of this page.

How do I add shapes from the Excalidraw libraries?

Open the library panel and click Browse libraries. Choosing Add to Excalidraw on a library sends you back here with it in the address, and the tool fetches the library file and merges its items into your panel. Both current and older library file formats are accepted.

Why do my diagrams look hand-drawn, and can I make them neat?

Excalidraw draws with Rough.js to give a sketched look. Set Sloppiness to Architect and the font to Normal in the properties panel for straight, clean lines. The same setting applies to every new shape until you change it again.

Can I turn Mermaid or other code into a diagram here?

The tool is for drawing by hand. If you keep diagrams as code, Mermaid or PlantUML are a better fit, since they live in Git next to your docs. A common split is code-generated diagrams for reference documentation and sketches like these for design discussions.

Is there an in-depth guide to the Online Diagram Tool?

Yes. “Sketching and Diagramming in the Browser: Canvas, Excalidraw and When to Use Each” covers the background, how it works, common pitfalls and worked examples. Read the full guide.