Live collaboration

Live collaboration lets you invite people into a live session in the Excalidraw web app, where everyone draws on the same canvas. Starting a session creates a room and a link, and the link carries the key that encrypts the drawing, so whoever has the whole link can join. It needs an internet connection, and it is offered only in the web app, not inside a frame.

On this page

Where it is available

Live collaboration runs in the Excalidraw web app, and it is turned off when the app runs inside a frame. It is offered only while you are online or already in a session. If it stops being offered while the session dialog is open, the dialog closes. On a phone the button at the top right of the canvas is hidden, but the menu and the welcome screen still offer Live collaboration.

Start a session

You can open Live collaboration from the main menu, the welcome screen, the command palette, or the button at the top right of the canvas.

  • The top-right button opens the session dialog together with Export to Link, a read-only copy that is not live. That export is covered on Export and save.
  • The menu, the welcome screen and the command palette open only the session part of the dialog.

Select Start session.

The dialog then shows the session’s link and a QR code for it.

Your canvas becomes the session’s drawing. Shapes you deleted are left out, and the drawing is saved to the session. The address bar changes to the session link, which is the page’s address followed by #room= and two codes.

If you have not given a name, the session gives you a random one. You can change it in Your name.

Invite people

Send the link, or let people scan the QR code. In the dialog:

  • Copy link copies the link to the clipboard.
  • Share opens your device’s share options with the link and the title “Join a live collaboration session on Excalidraw”. It appears only where the browser supports sharing.
  • The QR code under the link holds the same link.

The button at the top right of the canvas shows a count of collaborators on its corner. The session reports you as idle after 60 seconds without pointer movement, and as away while the tab is hidden.

Join a session

Open a session link to join it. Your canvas is replaced with the session’s drawing, and the app does not ask first.

While you are in a session, your browser does not save your own drawing.

Stop a session

  1. Open Live collaboration the same way you started it.

  2. Select Stop session.

  3. Confirm the prompt.

The prompt reads “Stopping the session will overwrite your previous, locally stored drawing. Are you sure?”. Stopping first saves the drawing to the session. If you cancel, the session keeps running.

If you confirm, the address bar drops the session link, and you keep working on the drawing in this browser. Other people keep their own copy of the session, and they can keep working on it.

You can also select Stop session from the command palette while you are in a session.

If you close the tab while changes are not yet saved, the browser asks you to confirm before the page closes.

If a session stops working

What you see

What it means

What to do

“Couldn't save to the backend database. If problems persist, you should save your file locally to ensure you don't lose your work.”

What it means

The session could not save your drawing to its room.

What to do

Save your drawing to a file from Save to... in the menu.

“Couldn't save to the backend database, the canvas seems to be too big. You should save the file locally to ensure you don't lose your work.”

What it means

The drawing is too large for the session’s room.

What to do

Save the file locally, as above.

“No internet connection available. Your changes will not be saved!”

What it means

You are offline while in a session.

What to do

Reconnect to the internet.

“Couldn't decrypt data.”

What it means

An update from the session could not be decrypted, so it was skipped.

What to do

Open the full link again, copied with Copy link.

“Encryption key must be of 22 characters. Live collaboration is disabled.”

What it means

The key part of the link is cut or changed, so the link does not open a session.

What to do

Open the full link again, copied with Copy link.

“Couldn't copy to clipboard.”

What it means

The link was not copied.

What to do

Select the link in the Link field and copy it yourself.

If the page cannot reach the session server, it loads the drawing saved in the session instead. It does the same if no session drawing arrives within 5 seconds.

Sources

Related pages