Skip to content

Free toolsImages

Clean up scan

A crooked, grey scan or phone photo of a page, made to look scanned properly.

More free conversions, where you upload. The Fylane extension does the same work inside any upload form, on its own free share every day.About the extension

How to clean up scan

  1. Drop the scan or photo.
  2. Pick grey, black-and-white or colour.
  3. Press Clean and download.

What happens to your file

The sheet is turned upright by its camera data, bounded to 3600 pixels, and handed to unpaper: it finds the angle of the text lines and rotates the page straight, whitens the paper, removes the dark band a scanner lid or a table leaves at the edges and the speckles a scan picks up. The result is a PNG at the page’s size.

Best on a page of text or a form. A photograph on the page is kept but its greys are flattened toward paper white — use the colour result for those.

Questions

How crooked can it be?

A few degrees either way — the usual slip on a scanner glass or a phone held slightly off. A page photographed at a steep angle needs the perspective fixed first, which this does not do.

Is this OCR?

No — it makes the picture clean. Image to text reads it; a cleaned page reads better.

Do this in code

curl -X POST https://api.fylane.dev/v1/jobs \
  -H "Authorization: Bearer $FYLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "<file id>",
    "operation": "scan.clean",
    "options": {
      "mode": "gray",
      "borders": "remove"
    }
  }'

The same operation, scan.clean — A scanned or photographed sheet straightened, its background whitened, edges and speckles gone (unpaper) — gray, black-and-white or colour; the step image.to-pdf takes with clean: true. Upload first with the quickstart; every option is on the operations page. 500 free credits a month, then $5 per thousand.