> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_SRID

> Returns the numeric EPSG SRID recorded in a native GEOMETRY descriptor.

Returns the numeric SRID associated with a native `GEOMETRY` CRS. `OGC:CRS84` maps to 4326. A CRS without an unambiguous numeric EPSG mapping returns `NULL`; the function never substitutes EPSG:0.

## Syntax

```sql theme={null}
INT ST_SRID(GEOMETRY value)
```

A `NULL` input returns `NULL`. This function reads metadata and does not transform coordinates. It does not accept `GEOGRAPHY`.

## Example

```SQL theme={null}
SELECT ST_SRID(ST_GeomFromText('POINT (10 20)', 'EPSG:4326'));
-- 4326
```

## Keywords

ST\_SRID, GEOMETRY, CRS, EPSG

## Related data types

[GEOMETRY](/documents/4.2/sql-reference/data-types/spatial-types/GEOMETRY.md), [INT](/documents/4.2/sql-reference/data-types/numeric/INT.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.