---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://excalidraw.heycactus.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
lang: en
---

# Flowcharts

A flowchart is a chain of boxes joined by arrows, and you build one from the keyboard: select a box, hold Ctrl (Cmd on Mac), and press an arrow key to add a connected box in that direction. Hold Alt (Option on Mac) and press an arrow key to move the selection from box to box along those arrows.

> Verified against the product on 2026-11-23

## Add boxes with the arrow keys

1. Select one box. Only a rectangle, an ellipse, a diamond or a sticky note starts a flowchart.
2. Hold `Ctrl` (`Cmd` on Mac) and press an arrow key. A new box appears in that direction, one gap of 100 px from the box you selected, joined to it by an arrow.
3. Keep holding `Ctrl` (`Cmd`) and press the same arrow key again to add another box in that row or column.
4. Release `Ctrl` (`Cmd`). The new boxes and arrows stay on the canvas, and the first new box is selected.

> **Note:** Pressing a different arrow key while you hold `Ctrl` (`Cmd`) starts a new row or column. The boxes made in the first direction are dropped, and one box is made in the new direction.

To stop before you release, press `Escape` while you hold `Ctrl` (`Cmd`). Nothing is added.

If you select more than one element, or an element that isn't a box, pressing `Ctrl` (`Cmd`) with an arrow key adds nothing. Adding `Shift` to that combination adds nothing either.

While the cursor is in a text box or another input, these keys type as usual and build nothing.

### Where new boxes go

A new box sits one gap from the box you started from, centred on it when that space is free.

Every box joined to the box you started from by arrows, directly or through other boxes, counts as in the way. When one blocks the centred spot, the new boxes slide along that row or column to the nearest free space, and boxes already on the canvas stay where they are.

Each new box copies the size, fill, stroke, roughness and opacity of the box you started from.

Each new arrow is an elbow arrow attached to both boxes. Its end arrowhead is the current arrowhead setting, and its start has none.

If the box you started from is in a frame, and every new box fits in the frame or overlaps it, the new boxes join that frame.

## Move between boxes with the arrow keys

1. Select one box.
2. Hold `Alt` (`Option` on Mac) and press an arrow key. The selection moves to the connected box that lies next in that direction.
3. Release `Alt` (`Option`).

If no connected box lies in that direction, the selection stays where it is.

Only boxes joined to the selected box by arrows can be reached. Any shape an arrow can attach to counts, such as an image or a frame.

A box counts only if its centre lies past the selected box's edge in the direction you press. A box directly above or below doesn't count when you press Left or Right.

When two boxes are about equally near, within 10%, the one the selected box links to comes first. Then comes the one that links to it, then the one level with it, then the upper one for Left and Right or the left one for Up and Down.

## Keys shown on screen

While one box is selected, the hint reads “Ctrl + ↑↓ to create a flowchart”, with `Cmd` in place of `Ctrl` on Mac.

For every key combination, see [Keyboard shortcuts](https://excalidraw.heycactus.ai/jhn9a5-keyboard-shortcuts).

## Related pages

- [Arrows](https://excalidraw.heycactus.ai/9ugruv-arrows): the elbow arrows a flowchart makes, and how arrows attach to shapes.
- [Shape properties](https://excalidraw.heycactus.ai/fyx5xb-shape-properties): the colour, stroke and arrowhead settings that new boxes and arrows copy.
- [Groups and frames](https://excalidraw.heycactus.ai/4d5cbg-groups-and-frames): the frames that new boxes can join.
- [Keyboard shortcuts](https://excalidraw.heycactus.ai/jhn9a5-keyboard-shortcuts): every key combination in the editor.
