Labelme keyboard shortcuts: work with both hands
Watch an annotation session and the cursor tells only half the story. The other hand is making the decisions.
One hand points at the image. The other rests near A and D, ready to move between files, start a shape, fix a label, or clear the canvas. Once those movements become familiar, you spend less time looking for controls and more time looking at the image.
You do not need to memorize a wall of shortcuts. Start with one loop.
On macOS, use Cmd wherever this guide shows Ctrl, Option for Alt, Fn+Delete for Delete, and the key labeled Delete for Backspace. For example, Ctrl+Delete becomes Cmd+Fn+Delete; Settings and the Meta+H point-removal binding are written out separately in the reference.
Learn one review loop
- Press
Ctrl+Uto open an image directory, thenCtrl+Fto fit the first image to the window. - Inspect the image. Press
Twhen you need to hide every shape and check the pixels underneath. - Fix what is wrong.
Ctrl+Eedits a label.Ctrl+Jreturns to edit mode. The arrow keys move selected shapes by five pixels.Deleteremoves a selected shape. - Press
Dfor the next image. PressAif you need to go back.
Auto-save is on by default, so each edit is written before you move on. Your right hand can stay on the mouse while your left handles the repeated decisions.
This is the part worth practicing. The full reference can wait until a specific action sends you looking for it.
The combinations worth understanding
Copy once or keep copying
D opens the next image. Ctrl+Shift+D opens it and carries the current annotations with you. The same distinction applies in reverse with A and Ctrl+Shift+A.
That modified shortcut is useful when two neighboring frames are similar. For a whole run of related images, Ctrl+P turns on Keep Previous Annotation until you turn it off again.
Ctrl+Z follows the work
While drawing, Ctrl+Z removes the last point you placed. In edit mode, it undoes the last shape addition or edit. A bad polygon vertex costs one keystroke; you do not have to throw away the shape.
Press Enter or Space to finish a closeable shape, and Esc to cancel the shape in progress. Hold Alt if you need to place a polygon point near its first point without snapping the cursor closed.
T gives you the image back
Dense polygons can hide a missed edge or object. T toggles all shapes without deleting them, so you can compare the annotation with the raw image and press T again to bring the overlay back.
The arrow keys move five pixels
In edit mode, select one or more shapes and use the arrow keys for a fixed five-pixel move. It is a controlled adjustment, not a one-pixel nudge. Use the mouse when you need finer placement.
Choose what deserves a binding
Polygon and rectangle creation have defaults: Ctrl+N and Ctrl+R. Oriented rectangle, circle, line, point, and linestrip creation are unbound until you assign them.
You can change the configurable actions under shortcuts in Labelme's default configuration. App and canvas controls such as Enter, Esc, the arrow keys, the Settings shortcut, and keyboard-and-mouse combinations are fixed rather than part of that mapping.
Learn the defaults that occur in your own work. A polygon annotator needs Ctrl+N; a bounding-box review pass may never use it. The useful set is the one your hands stop having to search for.
The starter guide covers the full annotation flow. The packaged Labelme app is available from the download page.
Printable quick reference
This reference covers every non-empty default in the current shortcuts configuration, plus the fixed app and canvas controls used during annotation.
Files and navigation
| Action | Shortcut |
|---|---|
| Previous image | A |
| Previous image and copy current annotations | Ctrl+Shift+A |
| Next image | D |
| Next image and copy current annotations | Ctrl+Shift+D |
| Open file | Ctrl+O |
| Open directory | Ctrl+U |
| Save | Ctrl+S |
| Save as | Ctrl+Shift+S |
| Delete current annotation file | Ctrl+Delete |
| Close current file | Ctrl+W |
| Open Settings | Cmd+, on macOS |
| Open Settings | Ctrl+Shift+, on Windows/Linux |
| Quit | Ctrl+Q |
Ctrl+Delete removes the annotation file after confirmation. It does not delete the image.
Drawing
| Action | Shortcut |
|---|---|
| Draw polygon | Ctrl+N |
| Draw rectangle | Ctrl+R |
| Finish a closeable shape | Enter or Space |
| Undo the last point | Ctrl+Z |
| Cancel the shape in progress | Esc |
| Disable snap to the polygon's first point | hold Alt |
| Draw a square instead of a rectangle | hold Shift |
| Finish a linestrip or AI-Points prompt | Ctrl+click |
| Add an excluding AI-Points prompt | Shift+click |
Oriented rectangle, circle, line, point, and linestrip creation have configurable entries but no default key binding. AI-Points and AI-Box do not have configurable shortcut entries.
Editing
| Action | Shortcut |
|---|---|
| Enter edit mode | Ctrl+J |
| Edit selected label | Ctrl+E |
| Delete selected shapes | Delete |
| Duplicate selected shapes | Ctrl+D |
| Copy selected shapes | Ctrl+C |
| Paste copied shapes | Ctrl+V |
| Select all shapes | Ctrl+A |
| Move selected shapes by five pixels | arrow keys |
| Remove selected point | Backspace or Meta+H (Ctrl+H on macOS) |
| Undo the last shape addition/edit | Ctrl+Z |
| Toggle Keep Previous Annotation | Ctrl+P |
| Add a point to a polygon edge | Alt+click the edge |
| Remove a polygon point | Alt+Shift+click point |
| Add a shape to the selection | Ctrl+click the shape |
View
| Action | Shortcut |
|---|---|
| Zoom in | Ctrl++ or Ctrl+= |
| Zoom out | Ctrl+- |
| Zoom with the pointer | Ctrl + mouse wheel |
| Show original size | Ctrl+0 |
| Fit image to window | Ctrl+F |
| Fit image to width | Ctrl+Shift+F |
| Scroll horizontally | Shift + mouse wheel |
| Toggle all shapes | T |