Runs locally No signup No watermark
Dev Tool
Thinning / Skeletonization

Reduce binary shapes to 1-pixel-wide skeletons. Useful for shape analysis, handwriting recognition, and topology extraction.

✓ Core Access ✓ No signup 🔒 Supported file contents are not uploaded for processing
1

Upload

2

Adjust & Preview

Pixlane
Preparing the tool on your device

Pixlane is loading on your device. Supported file contents are not uploaded for processing. Site analytics and the assistant are separate; tool-specific limits may apply.

Thinning / Skeletonization

Skeletonize binary shapes into 1-pixel-wide centerlines with Zhang-Suen or Guo-Hall thinning for OCR and shape analysis.

Reduce binary shapes to 1-pixel-wide skeletons. Useful for shape analysis, handwriting recognition, and topology extraction.

How to Use Thinning / Skeletonization

  1. Upload an image: Upload one of the formats listed by the tool (JPG, PNG, WebP) and wait for the local preview.
  2. Adjust settings and process: Select the thinning algorithm (Zhang-Suen or Guo-Hall) and adjust the binary threshold for the input image.
  3. Review and download: Review the result, then download it in one of the formats offered by this tool.

Frequently asked questions

What is thinning / skeletonization?

Thinning reduces a binary shape to a 1-pixel-wide representation (skeleton) while preserving the topology and connectivity. It is the morphological equivalent of finding the "center lines" of shapes.

Zhang-Suen vs Guo-Hall?

Zhang-Suen is the classic iterative algorithm and works well for most shapes. Guo-Hall is a one-pass variant that can produce slightly different skeletons. It is faster but may leave more staircase artifacts.

Does thinning preserve the topology of the original shape?

Yes, both Zhang-Suen and Guo-Hall algorithms are topology-preserving: they maintain connectivity, holes, and the number of connected components. The skeleton retains the same topological structure as the original binary shape.

Is the Thinning tool free?

Yes. All tools on Pixlane are free with no signup required.

Does it reuse cached assets on repeat visits?

Browser caching can speed repeat visits; uncached site assets can still require an internet connection.

What image formats are supported?

JPG, PNG, and WebP are supported.

Do I need to binarize my image before thinning?

Yes. Thinning operates on binary (black and white) images. The tool automatically converts to grayscale and applies Otsu thresholding before skeletonization. For reviewed results, pre-process with the Threshold Segmentation tool.

What are common use cases for skeletonization?

Skeletonization is used for handwriting stroke analysis, road network extraction from satellite imagery, blood vessel mapping in medical imaging, fingerprint minutiae detection, and character recognition preprocessing.

Back to computer vision tools