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

# Library

A library keeps the shapes you want to use again. You add a selection to **Personal Library**, and selecting an item puts copies of its shapes back on the canvas. In the web app, the library stays in your browser and opens from the **Library** button.

> Verified against the product on 2026-11-23

## Open the library

Select **Library** to open the library in a sidebar. The command palette has a **Library** entry that opens and closes the same sidebar.

## Save shapes to the library

You can save a selection in two ways, and both put every selected shape into one library item.

| Way | What you do |
| --- | --- |
| The item with a plus sign | Select the shapes on the canvas, then select the item with a plus sign at the top of **Personal Library**. |
| The action | Select the shapes, then use the **Add to library** action. |

The item with a plus sign appears only while shapes are selected. Adding with it clears the selection on the canvas. The item goes to the top of **Personal Library**.

The action also adds the text inside a selected shape and the shapes inside a selected frame.

**Web Embed**, **IFrame** and **Image** shapes can’t be added. If your selection holds one, nothing is added and a message appears. Select the shapes without it.

An empty library shows “No items added yet...” and the hint “Select an item on canvas to add it here, or install a library from the public repository, below.”

## Insert library items

Select an item to insert it onto the canvas. Each insert gets its own copies of the shapes, so the library item stays as it was.

- Hold `Shift` and select an item to add it to the selection. If another item is already selected, every item between the two is selected too.
- Select an item that is already selected to insert every selected item.
- Several items go on the canvas in a square grid, with 50 units of space between them and about the square root of the item count per row, rounded up.
- Drag an item onto the canvas to place it where you let go. If the dragged item is selected, every selected item comes with it.

Press `Esc` in the library to clear the selection.

## Find an item

Type in the search box, which reads “Search library”, to find items by name. An item with no name isn’t found. Give it a name in **Rename or publish**.

Matches appear under “Library matches”. With no match, you see “No matching items found...”. While you search, the heading shows “esc to clear”.

## Remove items or reset the library

To remove items, select them, open the menu with three dots, and select **Remove**.

The dialog asks “Delete _the count_ item(s) from library?” Confirm to remove the selected items. Shapes you inserted from them stay on the canvas, because inserts are copies.

With no items selected, the same menu offers **Reset library** when the library has items. Its dialog asks “This will clear your library. Are you sure?” Confirming clears every item.

## Save the library to a file or open one

Select **Save to** in the menu to save the library as a file. If items are selected, only those are saved. The option appears only when the library has items.

Select **Open** when no items are selected, then choose a file. The file picker doesn’t filter by file type.

The file’s items join your library, and an item whose shapes match one already there is skipped. The library menu opens.

Dropping a library file onto the canvas adds it the same way and opens the library menu.

## Rename and publish

1. Select the items, open the menu with three dots, and select **Rename or publish**.
2. Type a name for each item. Each selected item needs a name before you can submit.
3. Fill in the library name, the description and the author name. Those three are required. The GitHub and Twitter user names are optional.
4. If you give a website, it must start with `http://` or `https://`.
5. Select **Submit**.

When your submission is accepted, the selected items are marked published, move under **Excalidraw Library**, and a dialog links to the submission.

If some selected items are already published, the dialog warns that you are publishing them again.

To keep the names without publishing, select **Save name(s) and exit**. Closing the dialog another way keeps the names too.

The dialog links to the public library repository, its guidelines and its license.

## Install a library from a link

A link to a library on excalidraw.com or in the public library repository adds that library to yours.

Unless the link matches this editor, the editor asks you to confirm first with “This will add _the count_ shape(s) to your library. Are you sure?” The count is the number of library items in the link, not the number of shapes. If you decline, nothing is added.

The installed items are marked published, and the library menu opens.

Any other address is refused.

## Where your library is kept

In the web app, the library is kept in your browser’s storage, and each change is saved there. Clearing the browser’s data for the site removes the library with it.

Closing the tab while a save is running asks you to confirm.

Developers who embed the editor can keep the library in their own storage. See [Excalidraw React component](https://excalidraw.heycactus.ai/9hsu3k-excalidraw-react-component).

## If a library message shows

| What you see | What it means | What to do |
| --- | --- | --- |
| “Couldn’t add item to the library” | The item couldn’t be saved to the library. | Select the shapes again and add them. |
| “Couldn’t remove item from the library” | The selected items weren’t removed. | Select the items again and select **Remove**. |
| “Embeddable elements cannot be added to the library.” | A **Web Embed** is in your selection. | Select the shapes without it, then add them again. |
| “IFrame elements cannot be added to the library.” | An **IFrame** is in your selection. | Select the shapes without it, then add them again. |
| “Support for adding images to the library coming soon!” | An **Image** is in your selection. | Select the shapes without it, then add them again. |
| “Couldn’t load library” | The file didn’t load as a library. | Open a library file saved with **Save to**. |
| “Couldn’t save library to storage. Please save your library to a file locally to make sure you don’t lose changes.” | The library couldn’t be saved in your browser. | Select **Save to** to keep a copy in a file. |
| “Invalid or disallowed library URL: _the address_” | The link points to a place the editor doesn’t install libraries from. | Use a link to excalidraw.com or the public library repository. |
| “something went wrong” in a browser alert | Publishing didn’t go through. | Select **Submit** again. |

## Related pages

- [Canvas and toolbar](https://excalidraw.heycactus.ai/tqp2n6-canvas-and-toolbar): where you select the shapes to save, and where items land on the canvas.
- [Export and save](https://excalidraw.heycactus.ai/tv5dsf-export-and-save): how library files fit with the other files you save and open.
- [Groups and frames](https://excalidraw.heycactus.ai/4d5cbg-groups-and-frames): what happens to shapes inside a frame when you save them.
- [Command palette](https://excalidraw.heycactus.ai/dmf727-command-palette): the **Library** entry in the list of commands.
