diagram

A lightweight diagram editor built with vanilla HTML, CSS, and JavaScript. No dependencies, no build step. Create flowcharts and diagrams directly in the browser.

Launch App

Features

Quick Start

Creating Shapes

Click a shape button in the toolbar, then click on the canvas to place it. Drag handles to resize, drag the body to move.

Drawing Connections

Select the Line tool (L), click and drag from one shape to another. Lines snap to shape edges automatically.

Adding Custom SVG Shapes

Click the Custom Shape button (last button in the toolbar), click on the canvas, then paste your SVG code into the Custom SVG textarea in the properties panel. Adjust the ViewBox Width and Height to match your SVG's coordinate space.

Tip: If your SVG doesn't have a wrapping <svg> tag, the app defaults to a 100x100 coordinate space. Use the ViewBox fields to adjust if needed.

Keyboard Shortcuts

V Select tool
L Line tool
T Text tool
G Toggle grid
S Toggle snap
Ctrl+Z Undo
Ctrl+Y Redo
Ctrl+D Duplicate
Delete Delete selected
Enter Edit text
+ - Zoom in/out
Esc Deselect

Technical Details