✳tools.stBrowse tools
◈ Processed on your device
±

Polygon area and centroid

Calculate shoelace area, perimeter and area centroid of a simple polygon.

Free

Enter boundary vertices in sequence as JSON coordinate pairs. The tool closes the boundary, applies shoelace sums for area and centroid, adds edge lengths and identifies clockwise or counterclockwise winding.

◈ Local processingFree

How to use

  1. Enter your text, values, or image.
  2. Adjust the options and run the tool.
  3. Copy or download your result.

Worked example

Example input

Vertices in boundary order (JSON): [[0,0],[4,0],[0,3]]

Example result

{
  "area": 6,
  "perimeter": 12,
  "centroid": [
    1.33333333333,
    1
  ],
  "winding": "counterclockwise"
}

Limitations and details

Supports 3–500 points for one nonzero-area simple polygon; holes and intersecting or nonadjacent touching edges are not supported.

Inputs and options

Vertices in boundary order (JSON)
Text

Frequently asked questions

Is this tool free and private?

Yes. All 300 tools are free in this phase. Processing happens in your browser; your input and files are not sent to our servers.

Related tools