Online Drawing Tool

Sketch with a brush, shapes, arrows, text and images on an 800x600 canvas, undo up to 100 steps and download a PNG or JPEG. Your work autosaves in the browser.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Online Drawing Tool?

The Online Drawing Tool is a small raster sketchpad built on the Konva canvas library. It gives you a freehand Brush, an Eraser, Rectangle, Circle, Line and Arrow tools, a Text tool, a Paint Fill tool and Upload Image, on an 800 by 600 pixel canvas with a background color you choose.

Every shape stays an object: switch to the Select Tool to drag it, resize or rotate it with the handles, or press Delete to remove it. Undo and Redo keep the last 100 edits. Download saves PNG or JPEG at twice the canvas resolution (1600 by 1200), and Copy to Clipboard puts a PNG on your clipboard where the browser allows it.

Your drawing and background color are saved to this browser's localStorage after each change, so a reload brings them back. Nothing is uploaded, including images you add. Very large uploaded images may not fit in localStorage, in which case the drawing still works but will not survive a reload.

  • Brush, eraser, rectangle, circle, line, arrow, text and paint fill
  • Select, move, resize and rotate any item
  • Solid, dashed and dotted strokes
  • Undo and redo up to 100 steps
  • PNG or JPEG download at 2x resolution, plus copy to clipboard
  • Autosaves in your browser; nothing is uploaded
Read the guide: Sketching and Diagramming in the Browser: Canvas, Excalidraw and When to Use Each

Updated

How to use the Online Drawing Tool

  1. Pick a tool from the toolbar: Brush, Eraser, Rectangle, Circle, Line, Arrow or Text. Shapes and text are placed where you click.
  2. Set the stroke Color, the Fill color for shapes, the size slider and Solid, Dashed or Dotted line style before drawing.
  3. Choose the Select Tool to move, resize or rotate items; double-click text to edit it, and press Delete to remove the selected item.
  4. Use Upload Image to place a picture on the canvas and the Canvas color to change the background.
  5. Open Download and choose PNG or JPEG, or click Copy to Clipboard.

Background and insight

Browser drawing apps fall into two camps. Raster paint tools write pixels straight onto a canvas, which is simple but makes every stroke permanent. Scene-graph tools, like this one, keep a list of shapes and redraw the canvas from that list. That is what makes select, move, undo and per-shape colors possible, and it is how Konva, Fabric.js and Excalidraw all work underneath.

The eraser here is a brush that paints in the current canvas background color. It hides strokes rather than cutting holes in them, which keeps the exported image clean, but if you change the background afterwards the old eraser marks show in the previous color. Delete whole shapes with the Select Tool when you can.

Exports flatten the scene into a bitmap. PNG is lossless and the right choice for line art and text; JPEG is smaller but smears hard edges, and it has no transparency, which does not matter here because the background is always painted.

Common use cases

  • Quick explanations

    Sketch an idea, circle part of a screenshot or draw arrows on an uploaded image to explain a bug.

  • Annotating screenshots

    Upload a screenshot, add arrows and text, and copy the result straight into a chat or ticket.

  • Teaching and tutoring

    Draw a figure or a worked problem and download it as an image for notes.

  • Rough wireframes

    Block out a page layout with rectangles and labels before moving to a real design tool.

Tips and limitations

  • The canvas is a fixed 800x600. Downloads are 1600x1200, which is sharp enough for documents and slides.
  • Uploaded images are scaled to fit inside 200x200 with their aspect ratio kept. Drag the corner handles to enlarge them.
  • Clear Canvas also wipes the saved copy in localStorage and the undo history, and it cannot be undone.
  • Copy to Clipboard needs a secure (HTTPS) page and a browser that supports image clipboard writes. Otherwise the tool downloads the PNG instead.
  • The drawing is stored per browser. Opening the tool on another device or in a private window starts with an empty canvas.
  • For diagrams with connectors that follow boxes as you move them, use the Diagram Tool instead.

Sources and further reading

  1. Canvas API, MDN Web Docs. The browser drawing surface that paint and scene-graph tools render to
  2. Getting Started with Konva, Konva. A scene-graph canvas library of the kind described here
  3. Fabric.js, Fabric JS project. Another object-model canvas library
  4. Portable Network Graphics (PNG) Specification (Third Edition), W3C. The lossless format recommended for line art and text

Frequently asked questions

Does the drawing tool save my work automatically?

Yes, in this browser only. After every change the shapes and background color are written to localStorage, and they are restored when you come back. Clearing site data, using a private window or switching devices loses the drawing, so download a PNG of anything you want to keep.

Why did the eraser leave colored marks after I changed the background?

The eraser paints with whatever the background color was when you erased, so it hides strokes instead of deleting them. If you then change the canvas color, those patches keep the old color. Use the Select Tool and Delete to remove whole strokes instead.

What resolution are the downloaded drawings?

The canvas is 800 by 600 pixels and exports at twice that, 1600 by 1200, in PNG or JPEG. PNG keeps lines and text crisp. JPEG files are smaller but blur sharp edges, so prefer PNG for anything with text.

Are images I upload to the drawing tool sent anywhere?

No. Images are read with the browser's FileReader and drawn on the canvas locally. They are also stored in localStorage as data URLs so your drawing reloads with them, which is why very large images can exceed the storage limit.

Can I use the drawing tool on a phone or tablet?

Touch input works for drawing and placing shapes, but the canvas is a fixed 800 pixels wide, so on narrow screens part of it is cut off. A tablet in landscape or a laptop is a better fit for longer drawing sessions.

How is this different from the Diagram Tool?

The Drawing Tool is a simple sketchpad with a fixed canvas and image export. The Diagram Tool runs Excalidraw, with an infinite canvas, connectors that stay attached to shapes, libraries of ready-made components, SVG export and its own editable file format.

Is there an in-depth guide to the Online Drawing Tool?

Yes. “Sketching and Diagramming in the Browser: Canvas, Excalidraw and When to Use Each” covers the background, how it works, common pitfalls and worked examples. Read the full guide.