draw.io keyboard shortcuts
draw.io, also called diagrams.net, is a free diagram editor for flowcharts, network maps, and org charts. These keys save and undo, move the canvas, select and arrange shapes, edit labels and styles, connect library shapes, and change table shapes.
Windows, macOS, Linux · 112 shortcutsDocument and tools
Document commands save, print, undo, redo, or cancel. Single letters insert the five published basic elements when focus is on the canvas.
| Action | Shortcuts |
|---|---|
| SaveThe Shift alternative opens Save As. | Windows / LinuxCtrl + SorCtrl + Shift + S macOSCmd + SorCmd + Shift + S |
| Undo | Windows / LinuxCtrl + Z macOSCmd + Z |
| Redo | WindowsCtrl + Y macOSCmd + Shift + Z LinuxCtrl + Shift + Z |
Windows / LinuxCtrl + P macOSCmd + P | |
| Toggle the grid | Windows / LinuxCtrl + Shift + G macOSCmd + Shift + G |
| Toggle connection arrows | Windows / LinuxAlt + Shift + A macOSOption + Shift + A |
| Ignore handles under the pointer | Windows / macOS / LinuxAlt + Hold |
| Add text | Windows / macOS / LinuxA |
| Add a note | Windows / macOS / LinuxS |
| Add a rectangle | Windows / macOS / LinuxD |
| Add an ellipse | Windows / macOS / LinuxF |
| Add a line | Windows / macOS / LinuxC |
| Toggle Freehand mode | Windows / macOS / LinuxX |
| Open the context menu | Windows / LinuxCtrlorRight click macOSCmdorRight click |
| Cancel editing or the current action | Windows / macOS / LinuxEscorCtrl + EscorShift + Esc |
| Open in draw.io | Windows / LinuxCtrl + Shift + K macOSCmd + Shift + K |
Canvas and view
Wheel commands scroll or zoom the canvas. Fit and zoom commands change only the viewport, while Space or right-drag pans it.
| Action | Shortcuts |
|---|---|
| Zoom the canvas with the mouse wheel | Windows / macOS / LinuxAlt + WheelorCtrl + Shift + Wheel |
| Scroll the canvas vertically | Windows / macOS / LinuxWheel |
| Scroll the canvas horizontally | Windows / macOS / LinuxShift + Wheel |
| Pan the drawing canvas | Windows / macOS / LinuxSpace then DragorRight click then DragorMouse wheel then Drag |
| Create or remove space in the diagram | Windows / LinuxAlt + Ctrl + Shift + Drag macOSOption + Cmd + Shift + Drag |
| Move or resize while ignoring the grid | Windows / LinuxAlt + Drag macOSOption + Drag |
| Go to the canvas home position | Windows / macOS / LinuxHome |
| Refresh the canvas | Windows / macOS / LinuxShift + Home |
| Reset the view | Windows / macOS / LinuxEnd |
| Fit the diagram to the window | Windows / macOS / LinuxEnter |
| Fit one page | Windows / macOS / LinuxHome |
| Fit two pages | Windows / LinuxCtrl + Shift + H macOSCmd + Shift + H |
| Open custom zoom | Windows / LinuxCtrl + J macOSCmd + J |
| Zoom in | Windows / LinuxCtrl + + macOSCmd + + |
| Zoom out | Windows / LinuxCtrl + - macOSCmd + - |
| Reset zoom | Windows / LinuxCtrl + 0 macOSCmd + 0 |
| Toggle the Layers panel | Windows / LinuxCtrl + Shift + L macOSCmd + Shift + L |
| Toggle the Outline panel | Windows / LinuxCtrl + Shift + O macOSCmd + Shift + O |
| Edit diagram metadata | Windows / LinuxCtrl + M macOSCmd + M |
| Toggle the Format panel | Windows / LinuxCtrl + Shift + P macOSCmd + Shift + P |
| Edit vertex geometry | Windows / LinuxCtrl + Shift + M macOSCmd + Shift + M |
| Toggle Tags | Windows / LinuxCtrl + K macOSCmd + K |
| Find or replace | Windows / LinuxCtrl + F macOSCmd + F |
| Toggle the Shapes panel | Windows / LinuxCtrl + Shift + K macOSCmd + Shift + K |
Selection and movement
Tab cycles selection; cursor keys move selected cells or pan when nothing is selected. Control and Shift change movement to resizing or page selection.
| Action | Shortcuts |
|---|---|
| Select the next cell | Windows / macOS / LinuxTab |
| Select the previous cell | Windows / macOS / LinuxShift + Tab |
| Select the parent | Windows / LinuxAlt + Shift + PorAlt + Tab macOSOption + Shift + PorOption + Tab |
| Select children or siblings | Windows / LinuxAlt + Shift + XorAlt + Shift + CorAlt + Shift + S macOSOption + Shift + XorOption + Shift + CorOption + Shift + S |
| Start a selection box or select intersecting shapes | Windows / macOS / LinuxAlt + Drag |
| Select all or deselect all | Windows / LinuxCtrl + AorCtrl + Shift + A macOSCmd + AorCmd + Shift + A |
| Select all vertices or all edges | Windows / LinuxCtrl + Shift + IorCtrl + Shift + E macOSCmd + Shift + IorCmd + Shift + E |
| Toggle a shape's selection state | Windows / LinuxCtrl + ClickorShift + ClickorCtrl + DragorShift + Drag macOSCmd + ClickorShift + ClickorCmd + DragorShift + Drag |
| Select the cell beneath the current cell | Windows / LinuxAlt + Click macOSOption + Click |
| Move a selected cell by one point or scroll | Windows / macOS / LinuxArrow keys |
| Move a selected cell by one grid step or select a page | Windows / macOS / LinuxShift + Arrow keys |
| Resize a selected cell by one point | Windows / LinuxCtrl + Arrow keys macOSCmd + Arrow keys |
| Resize a selected cell by one grid step | Windows / LinuxCtrl + Shift + Arrow keys macOSCmd + Shift + Arrow keys |
| Clone and connect in the arrow direction | Windows / LinuxAlt + Shift + Arrow keys macOSOption + Shift + Arrow keys |
| Scroll the page | Windows / LinuxAlt + Arrow keys macOSOption + Arrow keys |
| Go to the previous page | Windows / LinuxCtrl + Shift + Page Up macOSCmd + Shift + Page Up |
| Go to the next page | Windows / LinuxCtrl + Shift + Page Down macOSCmd + Shift + Page Down |
Shapes and arrangement
These commands act on selected cells. Rows that combine several closely related actions retain the exact alternatives grouped in the official one-page reference.
| Action | Shortcuts |
|---|---|
| Cut selected cells | Windows / LinuxCtrl + X macOSCmd + X |
| Copy selected cells | Windows / LinuxCtrl + C macOSCmd + C |
| Copy selected cells as an image | Windows / LinuxCtrl + Alt + X macOSCmd + Option + X |
| Paste | Windows / LinuxCtrl + V macOSCmd + V |
| Paste unformatted text | Windows / LinuxCtrl + Shift + V macOSCmd + Shift + V |
| Group selected cells | Windows / LinuxCtrl + G macOSCmd + G |
| Ungroup selected cells | Windows / LinuxCtrl + Shift + U macOSCmd + Shift + U |
| Lock, unlock, or edit a link | Windows / LinuxCtrl + LorAlt + Shift + L macOSCmd + LorOption + Shift + L |
| Duplicate selected cells | Windows / LinuxCtrl + EnterorD macOSCmd + EnterorD |
| Delete selected cells | Windows / macOS / LinuxBackspaceorDelete |
| Delete selected cells with connections or labels | Windows / LinuxCtrl + DeleteorShift + Delete macOSCmd + DeleteorShift + Delete |
| Turn or rotate selected cells 90 degrees clockwise | Windows / LinuxCtrl + R macOSCmd + R |
| Maintain proportions while resizing | Windows / macOS / LinuxShift + Resize |
| Resize around the center | Windows / LinuxCtrl + Resize macOSCmd + Resize |
| Collapse the selected container | Windows / LinuxCtrl + Home macOSCmd + Home |
| Expand the selected container | Windows / LinuxCtrl + End macOSCmd + End |
| Enter or exit the selected group | Windows / LinuxCtrl + Shift + EndorCtrl + Shift + Home macOSCmd + Shift + EndorCmd + Shift + Home |
| Bring to front or send to back | Windows / LinuxAlt + Ctrl + Shift + ForAlt + Ctrl + Shift + B macOSOption + Cmd + Shift + ForOption + Cmd + Shift + B |
| Bring forward or send backward | Windows / LinuxCtrl + Shift + ForCtrl + Shift + B macOSCmd + Shift + ForCmd + Shift + B |
| Copy or paste size or data | Windows / LinuxAlt + Shift + ForAlt + Shift + VorAlt + Shift + BorAlt + Shift + E macOSOption + Shift + ForOption + Shift + VorOption + Shift + BorOption + Shift + E |
| Clear waypoints or edit a tooltip or note | Windows / LinuxAlt + Shift + RorAlt + Shift + TorAlt + Shift + N macOSOption + Shift + RorOption + Shift + TorOption + Shift + N |
| Autosize selected cells | Windows / LinuxCtrl + Shift + Y macOSCmd + Shift + Y |
| Clone, swap, or constrain while dragging | Windows / LinuxCtrl + DragorShift + Drag macOSCmd + DragorShift + Drag |
| Move selected remote shapes and connectors | Windows / LinuxShift + Alt + Drag macOSShift + Option + Drag |
| Increase or decrease selected text size | Windows / LinuxCtrl + Shift + Num +orCtrl + Shift + Num - macOSCmd + Shift + Num +orCmd + Shift + Num - |
| Increase or decrease the selected shape size | Windows / LinuxCtrl + Shift + Arrow keys macOSCmd + Shift + Arrow keys |
| Clear all extra connector waypoints | Windows / LinuxAlt + Shift + R macOSOption + Shift + R |
Labels and styles
Label commands require text editing or a selected cell. Style commands copy appearance without copying the underlying shape content.
| Action | Shortcuts |
|---|---|
| Insert a new line in a formatted label | Windows / macOS / LinuxEnterorShift + Enter |
| Insert a line break, tab, or indent in a label | Windows / macOS / LinuxEnterorTab |
| Start editing the selected cell's label | Windows / macOS / LinuxEnterorF2 |
| Stop editing the label | Windows / LinuxCtrl + EnterorShift + TaborF2orEsc macOSCmd + EnterorShift + TaborF2orEsc |
| Toggle bold on selected label text | Windows / LinuxCtrl + B macOSCmd + B |
| Toggle italic on selected label text | Windows / LinuxCtrl + I macOSCmd + I |
| Toggle underline on selected label text | Windows / LinuxCtrl + U macOSCmd + U |
| Apply superscript to selected label text | Windows / LinuxCtrl + . macOSCmd + . |
| Apply subscript to selected label text | Windows / LinuxCtrl + , macOSCmd + , |
| Clear the default style | Windows / LinuxCtrl + Shift + R macOSCmd + Shift + R |
| Edit the selected shape or connector style | Windows / LinuxCtrl + E macOSCmd + E |
| Set the selected cell's style as the default | Windows / LinuxCtrl + Shift + D macOSCmd + Shift + D |
| Copy style | Windows / LinuxAlt + C macOSOption + C |
| Paste style | Windows / LinuxAlt + V macOSOption + V |
Shape libraries and connectors
These commands combine a modifier with clicking or dragging a library shape or connector endpoint. Mac uses Option where Windows and Linux use Alt.
| Action | Shortcuts |
|---|---|
| Disable replace and connect behavior on drop targets | Windows / LinuxAlt + DragorAlt + Shift + Drag macOSOption + DragorOption + Shift + Drag |
| Insert and connect the selected library item | Windows / LinuxAlt + ClickorAlt + Shift + ClickorAlt + Ctrl + Click macOSOption + ClickorOption + Shift + ClickorOption + Cmd + Click |
| Replace the selected shape with a library shape | Windows / macOS / LinuxShift + Click |
| Connect a library shape to an unconnected selected edge | Windows / macOS / LinuxClick |
| Ignore a shape or connect to a fixed point | Windows / LinuxAlt + ConnectorShift + Connect macOSOption + ConnectorShift + Connect |
| Clone a shape | Windows / LinuxCtrl + Drag macOSCmd + Drag |
Table shapes
Table shortcuts require a selected row, column, cell, or entire table. Modifier-drag operations resize, duplicate, distribute, or overlay table contents.
| Action | Shortcuts |
|---|---|
| Resize a row or column border | Windows / macOS / LinuxShift + Drag |
| Resize all rows or columns equally | Windows / LinuxCtrl + Drag macOSCmd + Drag |
| Distribute all rows or columns equally | Windows / LinuxShift + Ctrl + Drag macOSShift + Cmd + Drag |
| Duplicate the selected row | Windows / macOS / LinuxEnter |
| Duplicate a selected row or column while moving it | Windows / LinuxCtrl + Drag macOSCmd + Drag |
| Duplicate the entire selected table | Windows / LinuxCtrl + Enter macOSCmd + Enter |
| Delete the selected row or column | Windows / macOS / LinuxDelete |
| Overlay a shape on a table cell | Windows / LinuxAlt + Drag macOSOption + Drag |
Source
draw.io printable keyboard shortcuts · Checked
Current official printable draw.io shortcut reference and 2026 documentation checked August 31, 2026. The reference directs macOS users to use Command for Control and Option for Alt. Linux follows Control notation except for the separately published redo binding.