Draw a Line or Arrow on an Image screenshot

Draw a Line or Arrow on an Image

Draw one straight line or arrow between two points set as percentages, so the same numbers work at any image size. Colour, width and arrowheads included.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your tab
No upload
No model
Refusals named

What this page does

Places a single straight annotation on a picture, with optional arrowheads. Both endpoints are percentages of the width and height, which makes the same settings reusable across images of different sizes.

How to use it

Choose a file, set the options and press Render. Example: an 800 × 600 image with a 6 px arrow from 10%, 10% to 90%, 90% becomes the same 800 × 600 image with one diagonal red arrow.

How it works

The endpoints are converted from percentages to pixels using the decoded width and height, then the line is stroked with a round cap and, when asked, an arrowhead is built from the line's own angle. Nothing is resampled: the line is drawn on top of the original pixels.

What it refuses

A percentage outside 0-100, a width below 1, a colour that is not a hex value, or a zero-size image is refused by name.

Where it runs

The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device. It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank.

Places a single straight annotation on a picture, with optional arrowheads. Both endpoints are percentages of the width and height, which makes the same settings reusable across images of different sizes.

The endpoints are converted from percentages to pixels using the decoded width and height, then the line is stroked with a round cap and, when asked, an arrowhead is built from the line's own angle. Nothing is resampled: the line is drawn on top of the original pixels. The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.

Worked example: an 800 × 600 image with a 6 px arrow from 10%, 10% to 90%, 90% becomes the same 800 × 600 image with one diagonal red arrow.

How to use the draw a line or arrow on an image

Choose an image file, set the options, and press Render. The result appears below the form.

Example: an 800 × 600 image with a 6 px arrow from 10%, 10% to 90%, 90% becomes the same 800 × 600 image with one diagonal red arrow.

The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.

  • Start X (%) — 0 to 100
  • Start Y (%) — 0 to 100
  • End X (%) — 0 to 100
  • End Y (%) — 0 to 100
  • Line width (px) — 1 to 80
  • Line colour (hex) — a hex colour
  • Ending — one of line, arrow at the end, arrows at both ends
  • Output format — one of png, jpeg, webp
  • Quality (JPEG and WebP) — 1 to 100

What the canvas draws

Places a single straight annotation on a picture, with optional arrowheads. Both endpoints are percentages of the width and height, which makes the same settings reusable across images of different sizes.

The endpoints are converted from percentages to pixels using the decoded width and height, then the line is stroked with a round cap and, when asked, an arrowhead is built from the line's own angle. Nothing is resampled: the line is drawn on top of the original pixels.

  • Every option is declared by this page, so an unknown choice or an out-of-range number is refused by name before any pixel is drawn.
  • The preview and the download are the same canvas: what you see is the file you get.

What it refuses, and what it leaves out

A percentage outside 0-100, a width below 1, a colour that is not a hex value, or a zero-size image is refused by name.

It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank.

  • Not the right page for: freehand drawing or many strokes, which is the editor's annotation mode
  • Not the right page for: text labels beside the arrow, which is the text tool

What to Expect

Best for

  • pointing at one detail in a screenshot
  • marking a before/after pair with a direction
  • adding a single callout without an editor

Not ideal for

  • freehand drawing or many strokes, which is the editor's annotation mode
  • text labels beside the arrow, which is the text tool

What this tool keeps

  • The original pixels outside the stroke
  • The endpoint percentages, which are size-independent
  • Transparency in PNG and WebP

What may need cleanup

  • Choosing a colour with contrast against the picture
  • Using a wrapper or outline when the background is busy

Common errors

  • A start and end that are the same point draws a dot
  • A width larger than the image is still drawn, clipped at the edges
  • JPEG output flattens transparency

Example use cases

  • Marking a button in a UI screenshot
  • Explaining a diagram in a ticket

Sample input

an 800 × 600 image with a 6 px arrow from 10%, 10% to 90%, 90%

Sample output

the same 800 × 600 image with one diagonal red arrow

Who this is for

  • Support engineers annotating a screenshot
  • Anyone writing step-by-step instructions

Frequently asked questions

Does my image get uploaded anywhere?

The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.

What is the maximum image size?

It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank. The limit exists because a browser tab has to hold the decoded bitmap in memory.

What happens if the file cannot be decoded?

The page refuses it by name — unsupported type, decode failure, zero pixels, or above the pixel cap — and shows the measured size rather than drawing a blank canvas. The file you chose stays selected so you can correct one option and try again.

Can I draw more than one line?

Each render draws one line. Render, download, then load the result and draw the next one, or use the freehand editor when you need several strokes in one pass.

Why percentages instead of pixels?

Because the same callout then works on a phone screenshot and on a desktop screenshot. The page converts the percentages to pixels with the image's real size, and the preview is only a scaled copy.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.