Flatten a curved page with this free tool for document dewarping online. Photograph a book page and the text bends into the spine; photograph a document at an angle and it comes out as a trapezoid. Drop that photo in here and AI straightens the curl and the camera angle together, so the page reads like a scan. There is nothing to install, no account to create and nothing to upload: the photo is processed on your own device, in your browser.
Most online dewarp tools ask you to upload your page to their server, and the free browser tools that keep your file private can only drag the four corners of a page into a rectangle. Corner correction fixes a tilted photo of a flat sheet, but it cannot fix a page that is itself curved. This tool runs a real AI model trained on curved pages, and it runs entirely on your device, so a private letter or an ID document never leaves your phone or computer.
Key features
- Fixes the curve, not just the corners: the UVDoc AI model undoes the bend of a book page as well as the camera angle, which is the part simple perspective tools cannot do.
- Nothing to install, nothing uploaded: the model ships with this page and runs in your browser. Your photo is never sent to a server.
- Before and after view: check the flattened page next to your original photo before you download.
- PNG or JPG download: keep a lossless PNG, or pick JPG for a smaller file to share.
- Made for OCR: straighter text lines are easier for OCR to read, so flatten a page here first, then pull the text out of it.
- Free, with no sign-up: no account, no credits and no daily limit.
How to use
- Drop your JPG, PNG or WebP photo onto the tool, or choose it from your device. Photos up to 25 MB are accepted. One page at a time works best, with a small margin of background around the page.
- Click Flatten this page and wait a few seconds while the AI works on your device.
- Check the flattened page next to the original, pick PNG or JPG, then download it.
How the AI dewarping works
The tool runs UVDoc, the document unwarping model from the PaddleOCR family, directly in your browser through ONNX Runtime Web. UVDoc was trained on photographs of real curved documents, so it has learned how a bent page maps back to a flat one: it predicts the shape of the page, then resamples the photo onto a flat grid in a single step. Because the model files ship with this site (about 30 MB, loaded by your browser as part of the page) and the work happens on your device, there is no server queue and no copy of your page anywhere else.
UVDoc is released under the Apache 2.0 licence, which is why this tool can use it freely. The trade off is honest: a browser model will not press a page as flat as a hardware book scanner with a glass plate, but it runs privately, at no cost, on a photo you already have.
Honest limits worth knowing
Three limits are worth knowing before you start. First, the flattening is real but partial: expect a visibly flatter, more readable page with straighter text lines, not a press-flat scan. Second, single pages flatten best, because that is what the model was trained on; an open two-page spread comes out more rectangular, but the curve near the spine stays partly visible, so photograph one page at a time for the cleanest result. Third, the output is a straightened version of your photo at the same resolution, so a photo that was soft, dark or blurry stays that way; very large photos are worked on at a reduced size for speed and returned at your photo size, which can soften fine detail a little. For the best result, photograph the page from directly above, in good light, with the whole page in frame.
Once your page is flat, turn it into a PDF or merge it with others using our PDF Tools, or convert a document into clean text for AI tools with the File to Markdown Converter. This tool is part of our free PDF tools collection: free, no account, and nothing to install.