Skip to content
Geo Utilities

S2 Cell Converter

Convert coordinates to Google S2 Cell IDs and explore parent, child, and neighbor cells.

How to use
  1. Enter a coordinate and S2 level (0–30) to get its Cell ID, token, and boundary.
  2. Click a Parent, Child, or Neighbor cell to jump to it and recompute everything.
  3. Click the map to set the input coordinate directly, or use the current map center.
  4. Batch (CSV) tab converts many coordinates to S2 cells at once.
Seoul City Hall example
Point

Decimal (127.0276) or DMS (127°01'39.4"E)

Lower level = larger cells, higher level = smaller cells.

Cell ID3854134520986992640
Token357ca2ed4
Level15
Cell Center37.567978, 126.976941
Approx. Cell Area6.0739 ha

Map

Loading map…

Click the map to set the input coordinate there.

Cell Hierarchy

Current CellLevel 15357ca2ed4
Parent Level

Child Cells (Level 16)

Token / IDLevelCenter
357ca2ed1
3854134520181686272
1637.568310, 126.977613
357ca2ed3
3854134520718557184
1637.568799, 126.976270
357ca2ed5
3854134521255428096
1637.567645, 126.976270
357ca2ed7
3854134521792299008
1637.567157, 126.977613

Neighbor Cells

Token / IDLevelCenter
357ca2f2c
3854134544609312768
1537.565670, 126.976941
357ca2edc
3854134523134476288
1537.567000, 126.979627
357ca2ecc
3854134518839508992
1537.570285, 126.976941
357ca292c
3854134132292452352
1537.568955, 126.974255

What is S2?

S2 Geometry divides the Earth's surface into a hierarchy of cells for efficient spatial indexing. Each cell has a parent-child relationship, and higher levels subdivide into smaller cells.

Processed locally in your browser — coordinates are never sent to a server.

Bidirectional S2 Cell Conversion

Convert between coordinates and S2 Cell IDs or tokens. Explore boundaries, centers, areas, and hierarchy from level 0 through 30.

Frequently asked questions

How is S2 different from H3?

S2 projects the sphere onto a cube and recursively subdivides it into mostly quadrilateral cells, while H3 uses mostly hexagons — H3 suits neighbor analysis, S2 suits compatibility with existing S2-based systems like MongoDB or BigQuery.

What S2 levels are supported?

Level 0 (whole-globe scale) through 30 (sub-centimeter); Cell IDs are shown as 64-bit integers or canonical hex tokens.

Related GIS guides

Report an issue