# IPv4 / IPv6 address converter — no upload

> Convert IPv4 to integer and back, and expand or compress IPv6 addresses, in your browser. Nothing is uploaded — the address stays in the tab.

Convert an IPv4 address to its integer form and back, and expand or compress IPv6 addresses to their full or shorthand notation. The conversion runs on your device with nothing uploaded.

IP addresses show up in many forms — dotted IPv4, a 32-bit integer, shorthand or expanded IPv6 — and code often needs one specific form. Converting between them removes fiddly manual work.

For subnet ranges around an address use the CIDR calculator; for hardware addresses, the MAC inspector.

## How to

1. **Enter an address.** Paste an IPv4 or IPv6 address.
2. **Convert.** See integer, binary, or expanded/compressed forms.
3. **Copy.** Copy the representation you need.

## FAQ

### Why convert an IP to an integer?

Databases and range checks often store IPv4 as a 32-bit integer for efficient comparison; converting both ways is common when working with such systems.

### What does expanding an IPv6 address do?

It writes out the full form with all zero groups, turning shorthand like ::1 into the complete address — useful for exact matching.

### Is the address uploaded?

No. Conversion is done locally in the tab.


## Related tools

- [CIDR calculator](https://www.safepaper.app/dev/cidr)
- [MAC / OUI](https://www.safepaper.app/dev/mac-lookup)
- [Common ports](https://www.safepaper.app/dev/common-ports)
- [User-Agent parser](https://www.safepaper.app/dev/user-agent)

---

Canonical HTML: https://www.safepaper.app/dev/ip-convert
Markdown: https://www.safepaper.app/dev/ip-convert.md

There is no upload endpoint — your files are processed in this browser tab. Open your network tab and check.
