Skip to content
T
Tools.Town
Free Online Tools for Everyone
IPv4/6

IP Address Validator

100% Free

Validate IPv4 and IPv6 addresses and see their breakdown — class, integer, hex, binary, expanded form, and whether they fall in private, loopback, or reserved ranges.

IPv4 & IPv6
Range Detection
Binary & Hex
100% Client-Side

1. Enter an IP address

Try an example

Detects private (RFC 1918), loopback, link-local, multicast, and reserved ranges for both IPv4 and IPv6. Everything runs in your browser.

2. Breakdown

Valid IPv4private

Private (RFC 1918, 192.168.0.0/16)

Canonical form
192.168.1.1
Class
C
Integer
3,232,235,777
Hex
0xC0A80101
Binary
11000000.10101000.00000001.00000001
Octets
192 . 168 . 1 . 1

Embed This Tool

Easy to Embed

Add IP Address Validator to your website or blog in seconds.

  • Responsive design
  • Lightweight & fast
  • No backend required
  • Always up-to-date
<iframe
  src="https://tools.town/embed/ip-address-validator/"
  width="100%"
  height="600"
  style="border:none; border-radius:12px;"
  loading="lazy"
  title="IP Address Validator">
</iframe>

Share This Tool

Share Instantly

Share IP Address Validator with anyone — no login required.

  • Shareable link
  • No login required
  • Works on any device
  • No account needed

Share via

Advertisement

How to Use

  1. 1 Paste or type an IPv4 or IPv6 address
  2. 2 Or click an example to try a known address
  3. 3 See instantly whether it is valid and which version
  4. 4 Read the scope — public, private, loopback, link-local, multicast, or reserved
  5. 5 For IPv4, view the class, integer, hex, and binary; for IPv6, the expanded form

Features

  • Validates both IPv4 and IPv6, including '::' shorthand
  • Detects private (RFC 1918), loopback, and link-local ranges
  • Flags multicast and reserved blocks
  • IPv4 class (A–E), 32-bit integer, hex, and binary
  • IPv6 canonical compression and full expansion
  • Handles embedded IPv4 inside IPv6 (::ffff:1.2.3.4)

Why it Matters

An IP address can be valid in form but mean very different things depending on its range — a 192.168.x.x address is private and never routes on the public internet, while 8.8.8.8 is globally reachable. Knowing the version, scope, and structure of an address helps with firewall rules, debugging connectivity, and writing correct validation in your own code.

★★★★★

Use Cases

Debug Networking

Confirm an address is valid and see its scope

Firewall & ACL Rules

Tell private ranges apart from public ones

Form Validation

Verify user-entered IPs before saving them

Learn IP Structure

See the binary, hex, and integer behind an address

What this tool does

The IP Address Validator checks whether a string is a valid IPv4 or IPv6 address and breaks it down completely — version, scope, and structure — so you can tell at a glance whether an address is public, private, loopback, link-local, multicast, or reserved.

How it works

For IPv4 it parses four octets (0–255, no leading zeros) and computes the class, 32-bit integer, hex, and binary forms. For IPv6 it validates the groups and the :: shorthand, supports embedded IPv4, and shows both the compressed canonical form and the fully expanded eight-group form. Range detection uses the standard RFC-defined blocks.

Privacy

This is a pure, offline analysis — no WHOIS, geolocation, or DNS lookups. Everything runs locally in your browser and nothing is uploaded.

Frequently Asked Questions

What makes an IPv4 address valid?
An IPv4 address has four octets separated by dots, each a number from 0 to 255 with no leading zeros — for example 192.168.1.1. The validator rejects octets above 255, the wrong number of parts, and malformed text, then reports the class, integer, hex, and binary forms.
How does it validate IPv6?
It checks that the address has up to eight groups of four hex digits, that the '::' zero-compression shorthand appears at most once, and that any embedded IPv4 is itself valid. Valid addresses are shown both compressed (canonical) and fully expanded to eight groups.
What are private and reserved ranges?
Private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 for IPv4; fc00::/7 for IPv6) are used inside local networks and never route publicly. Reserved, loopback (127.0.0.1, ::1), link-local (169.254.x.x, fe80::/10), and multicast blocks have special meanings the tool flags for you.
Does it look up who owns the IP?
No. This tool analyses the address itself — its format, version, and the standard range it belongs to. It does not perform a live WHOIS, geolocation, or DNS lookup, so nothing is sent over the network.
Is my data stored anywhere?
No. All parsing and classification runs locally in your browser. The addresses you enter are never uploaded, logged, or stored.

Related Tools You Might Like

Browse more free tools