---
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
---

# Text

Text is typed onto the canvas, or inside a shape, and it grows as you type until it reaches the width of the visible canvas, then wraps. The **Text** tool (`T`) places it, a double-click with the selection tool starts it, and **Enter** edits a selected text or shape.

> Verified against the product on 2026-11-23

## Create text on the canvas

Pick the **Text** tool with `T` or `8`, then click where the text should go. The editor opens there, and the tool goes back to selection once the text is placed, unless the tool is locked.

Dragging with the **Text** tool sets the width instead. A drag more than 36 px wide on screen makes a text that wraps at the width you drag to, and that text stops growing.

With the selection tool, double-click anywhere on the canvas to start a text there. Hold **Ctrl** or **Cmd** while you double-click to skip binding the text to a shape under the pointer.

With one text or shape selected, press **Enter** to edit it. The editor opens at its centre.

## Type and finish

Type straight into the editor. Press **Escape**, or **Ctrl** or **Cmd** with **Enter**, to finish. Clicking or tabbing away from the editor also finishes it.

**Tab** indents the line by 4 spaces. **Shift** with **Tab** removes an indent, and so does **Ctrl** or **Cmd** with **[**.

A text left empty is removed when you finish. For a text inside a shape, the shape stops holding it.

## How wide text gets

A new text grows as you type, so it stays on one line until it reaches its limit.

A text stops growing at the width of the visible canvas, with 20 px left at each side. It also stops at 800 px in scene units at 100% zoom or more. Zoomed out, the limit is 800 px on screen, and it can reach 2000 scene units.

Once it passes that limit, the text stops growing, wraps at that width, and keeps the width.

To switch a free text's auto-resizing on or off, select it and press **Alt** with **W**. The action is named **Enable text auto-resizing** or **Toggle text auto-resizing**.

Turning auto-resizing on lets the text grow with its content again, on one line. Turning it off wraps the text at about its current width.

Text inside a shape always keeps its own width, so **Alt** with **W** does nothing there.

## Text inside a shape

Double-click a shape with the selection tool, or select it and press **Enter**, to type into it. A shape can take text when it is a rectangle, sticky note, diamond, ellipse or arrow.

Text in a shape is centred both ways. It wraps inside the shape, with 5 px of padding on each side for a rectangle, and less room in a diamond or an ellipse.

If the text needs more room, a shape other than an arrow grows to fit it.

### Bind existing text to a shape

Select one text and one shape that has no text, and the **Bind text to the container** action is available. It moves the text into the shape, centred, and selects the shape.

### Unbind text from a shape

Select a shape with text and choose **Unbind text**. The text stays where it is as free text, and it stops auto-resizing. The shape goes back to the height it had before the text went in.

### Wrap text in a shape

Select free text and choose **Wrap text in a container**. Each text gets its own rectangle, sized to the text plus 5 px of padding on each side, and the rectangles are selected.

## Related pages

Font, size, colour and alignment are set in [Shape properties](https://excalidraw.heycactus.ai/fyx5xb-shape-properties). Text on an arrow is covered in [Arrows](https://excalidraw.heycactus.ai/9ugruv-arrows), and the keys are listed in [Keyboard shortcuts](https://excalidraw.heycactus.ai/jhn9a5-keyboard-shortcuts).
