Document Perspective Corrector

Document Perspective Corrector

Straightens a photographed flat page. It cannot undo curl, shadows or occluded content.

1. Document photo

PNG, JPEG or WebP, up to 8 MB. The processed source must be at most 1600 px per side and two million pixels in total.

Load an example or choose a photo.

2. Four page corners

Drag handles or enter coordinates below. Order: top-left → top-right → bottom-right → bottom-left.

Top-left
Top-right
Bottom-right
Bottom-left

3. Source and corrected result

Regenerate after changing size or mode. Color mode does not apply contrast or threshold bias.

4. Correction settings

5. Save

JSON saves coordinates, mode and dimensions, but not the document photo.

Comments & questions

Document Perspective Corrector

Mark the four corners of a photographed page or receipt in clockwise order from the top left. A four-point projective transform maps the slanted paper region into a front-facing rectangle; you can adjust the output size. Compare the color result with grayscale or locally thresholded black-and-white for legibility, then save a PNG and settings JSON. This is not OCR and cannot reconstruct curled paper, shadows or hidden text.

Key features

  • Four document corner coordinates and draggable handles
  • Four-point projective mapping from a trapezoid to a rectangle with interpolated pixels
  • Color, grayscale and local-threshold black-and-white modes with contrast and threshold controls
  • Suggested output dimensions from page edge lengths, with manual editing
  • Validation of crossed or collapsed quadrilaterals and processing limits
  • Straightened PNG and corner/settings JSON without image bytes

How to use

  1. Load the example or select a photo of a document.
  2. Align the top-left, top-right, bottom-right and bottom-left handles with the page corners, in that order.
  3. Check output width and height, then choose color, grayscale or black-and-white and adjust contrast and threshold bias.
  4. Generate the front-facing image and inspect its crop and text legibility.
  5. Download the PNG; save the corner JSON too if you plan to reapply settings to the same photo.

Use cases

  • Straighten a trapezoidal photo of an A4 page
  • Flatten the paper area in a receipt photo
  • Correct perspective on photographed handouts or tables and compare grayscale output

Frequently asked questions

In what order should I set the four corners?

Use top-left, top-right, bottom-right and bottom-left as seen in the photo. Crossing edges or a nearly collapsed area cannot be processed.

How is this different from a regular crop?

A crop extracts an axis-aligned rectangle from the photo. This tool projects a slanted four-corner region into a new front-facing rectangle.

Does black-and-white mode recognize or recover text?

No. It thresholds brightness using nearby pixel averages and your chosen bias. It does not invent missing letters or run OCR.

Why might the result look blurry?

The tool cannot add detail absent from the source photo, and interpolation mixes neighboring pixels. Check the selected area and output size, and use a sharp original photo.

Does the settings JSON contain the document photo?

No. JSON stores the four corner coordinates and output settings only. Keep the source photo separately.

Privacy

The photo, corner coordinates and corrected image are processed in your browser. This tool does not send the photo to its server API, and the settings JSON contains no source image bytes.

Related Tools

Perspective Mockup StudioImage CropImage FiltersImage Super ResolutionHDR Exposure MergerPhoto Colorization LabPanorama StitcherSheet Nesting PlannerEdit Decision WorkbenchTeleprompter StudioBilingual Video Study PlayerChord Progression LabMusic Score EditorSubtitle WorkbenchSpatial Audio DesignerMusic Chord Candidate AnalyzerMIDI Piano Roll EditorSample Instrument BuilderImpulse Response LabAudio Waveform EditorDTMF Signal LabSpectrogram Sound PainterAudio Spectrum AnalyzerAudio DenoiserAudio Source SeparatorSound Effect SynthesizerMultitrack Audio MixerAudio Transient SlicerAudio Loop Seam FinderAudio Loudness AuditorAudio Pitch Tempo StudioStereo Anaglyph MakerPhoto Mosaic MakerImage Frequency SpectrumSimilar Photo FinderLenticular InterlacerPBR Texture Map LabPanorama Tour BuilderImage Calibration TargetsImage Steganography LabVector Morph EditorImage Inpainting StudioKnitting Chart EditorSVG Boolean WorkbenchSVG Path EditorSeamless Pattern MakerScreenprint Separation StudioQuilt Layout PlannerLow Poly Mesh MakerFont Subset BuilderFocus Stacking LabImage Depth EstimatorCross Stitch Chart MakerAnimation Timeline EditorPixel Paint StudioImage Difference HeatmapImage Quality LabID photo makerBarcode scannerVideo to GIFVideo Chroma KeyerVideo StabilizerVideo Reframe StudioStop Motion StudioVideo Timecode ConformerVideo Quality ComparatorHLS and DASH Manifest ValidatorVideo Speed Ramp EditorVideo Container InspectorVideo Storyboard MakerVideo Privacy MaskerRotoscope Mask EditorVideo Motion TrackerVideo Frame InterpolatorAudio Description EditorVideo Audio Sync LabVideo TrimmerGIF Frame ExtractorSVG to PNG / JPEGImage to SVG VectorPixel Art ConverterCircle Profile CropPhoto and Polaroid FrameRound Image CornersJPEG EXIF Viewer and RemoverImage Color Vision SimulatorImage to ASCII ArtPhoto CollageInstagram 9-Tile SplitterLong Image SplitterRotate and Flip ImagesMeme GeneratorScreenshot BeautifierBarcode GeneratorQR Code GeneratorImage CompressorImage ResizeImage ConverterFavicon GeneratorYouTube Thumbnail ExtractorHEIC to JPGSignature & Stamp MakerImage WatermarkGIF MakerImage Color PickerImage to Text (OCR)Merge ImagesPhoto Blur & MosaicQR Code ScannerMP4 to MP3 ConverterVideo CompressorBackground Remover
Explore all Image/Media tools →Text/Convert →Life/Fun →Dev Tools →