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

# inet_aton

> Takes a string containing an IPv4 address in the format A.B.C.D.

Takes a string containing an IPv4 address in the format A.B.C.D. Returns a BIGINT number representing the corresponding IPv4 address in big endian.

## Syntax

```Haskell theme={null}
BIGINT inet_aton(VARCHAR ipv4)
```

## Examples

```Plain Text theme={null}
mysql> select inet_aton('192.168.1.1'); 
+--------------------------------------+ 
| inet_aton('192.168.1.1') | 
+--------------------------------------+ 
| 3232235777                           | 
+--------------------------------------+ 

mysql> select stringIp, inet_aton(stringIp) from ipv4; 
+-----------------+----------------------------+ 
|stringIp         | inet_aton(stringIp)        | 
+-----------------+----------------------------+ 
| 0.0.0.0         | 0                          | 
| 255.255.255.255 | 4294967295                 | 
| invalid         | NULL                       | 
+-----------------+----------------------------+ 
```

## keyword

INET\_ATON


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