S2 Cell Converter
Convert coordinates to Google S2 Cell IDs and explore parent, child, and neighbor cells.
How to use
- Enter a coordinate and S2 level (0–30) to get its Cell ID, token, and boundary.
- Click a Parent, Child, or Neighbor cell to jump to it and recompute everything.
- Click the map to set the input coordinate directly, or use the current map center.
- Batch (CSV) tab converts many coordinates to S2 cells at once.
Lower level = larger cells, higher level = smaller cells.
Map
Click the map to set the input coordinate there.
Cell Hierarchy
Child Cells (Level 16)
| Token / ID | Level | Center | |
|---|---|---|---|
357ca2ed1 3854134520181686272 | 16 | 37.568310, 126.977613 | |
357ca2ed3 3854134520718557184 | 16 | 37.568799, 126.976270 | |
357ca2ed5 3854134521255428096 | 16 | 37.567645, 126.976270 | |
357ca2ed7 3854134521792299008 | 16 | 37.567157, 126.977613 |
Neighbor Cells
| Token / ID | Level | Center | |
|---|---|---|---|
357ca2f2c 3854134544609312768 | 15 | 37.565670, 126.976941 | |
357ca2edc 3854134523134476288 | 15 | 37.567000, 126.979627 | |
357ca2ecc 3854134518839508992 | 15 | 37.570285, 126.976941 | |
357ca292c 3854134132292452352 | 15 | 37.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.