Deskew Tools

Deskew is a tool for deskewing scanned text documents. Deskewing is a term used for fixing the scans to get the lines of text straight. That means rotating the image of the scanned page a little to compensate for the misalignment of the paper in the scanner.

Deskew uses Hough transform to detect "text lines" in the image and their orientation. As an output, you get an image rotated so that the detected lines are horizontal. You can find more theory in introductory post Deskewing Scanned Documents if you are curious.

Deskew is a command line tool for Windows, Linux, and macOS. Simple GUI frontend also exists. Based on the user feedback and my own usage, I'd say it works quite well 🙂 On occasion, I think about stuff like: Deskew web app, GPU deskewing, Deskew app for Android, and even Deskew Photoshop plugin!

Deskew's README

All Posts About Deskew


Command line tool and GUI frontend downloads:

  Deskew v1.30
» 4.3 MiB - 12,407 hits - June 19, 2019
Command line tool for deskewing scanned documents. Binaries for several platforms, test images, and Object Pascal source code included.

  DeskewGui v0.90
» 4.1 MiB - 1,997 hits - March 18, 2019
GUI frontend for Deskew command line tool. Prebuilt binaries for Windows, macOS, and Linux. Windows and Linux versions need Deskew command line tool binaries.

Bug Reports & Feature Proposals

Please report bugs and propose enhancements and new features in Deskew's issue tracker:

Source Code

Deskew's sources are hosted here:


If you want to donate to Deskew Tools you can click Sponsor button at Deskew's GitHub page.

61 thoughts on “Deskew Tools

  1. Hi Marek, thank you for such a useful and reliable utility. I don’t know if you still have time to maintain Deskew and DeskewGui, but some options like the JPEG compression quality are missing from the GUI and because of that, one has to write some batch files/scripts to process entire folders of scanned pages. Either offering in the GUI all the available options or a line to pass extra options would do the trick. Thanks for your consideration.

    • Compression settings are actually already implemented but there’s no official build released.
      Good idea to allow passing extra parameters from GUI to CLI. GUI will always
      lag behind a bit and won’t provide all the options CLI can handle.

  2. Oh, Marek, one more thing… When I run the Deskwe tool on some JPGs, the pixel density (DPI) is changed from say 300 DPI to 72 DPI and the page appears of wrong dimensions when later imported into Adobe Acrobat. Is this something you could quickly fix?

  3. Hi Marek, thank you for your DeskTools, I like it 🙂 Is there any way, how to skew multipage TIF (BW, with G4) scan?


Leave a Reply to Marek Mauder Cancel reply

Your email address will not be published. Required fields are marked *