IP Address Converter
IPv4, IPv6, Decimal, Hex And Binary
This ip address converter turns an IPv4 or IPv6 address into decimal, hex, binary, octal, short and full forms, and reads each of them back. Convert one address or a whole list. We upload nothing.
- FreePrice
- 12Forms
- NoneSign-up
- NoneUploads
IP Address Converter
Turn IPv4 and IPv6 addresses into decimal, hex, binary and more
| Form | Value | Copy |
|---|
- Converted
- 0
- Skipped
- 0
Ready. Type an IP address.
What An IP Address Converter Does For You
An IP address is just a number. People write it in many ways. For example, logs show a long decimal. A firewall wants dotted binary. Also, a config file wants hex.
An ip address converter moves between them. First, type an address in any form. Then the tool shows every other form at once. So you copy the one you need.
Also, it handles IPv6. It shortens and expands addresses, and it builds the reverse DNS name. So you can check a long address in a blink.
Everything runs in your browser. So the addresses you check never leave your device.
How An IPv4 Address Is Really A Number
An IPv4 address has four parts, and each part is one byte. Put the four bytes together and you get a 32 bit number. So 192.168.1.1 is also 3232235777.
The maths is simple. First, multiply the first part by 16777216, the second by 65536, and the third by 256. Then add the last.
For more detail, see: RFC 4291, IPv6 addressing.
IPv4 To Decimal
Type any IPv4 address, and the table shows the decimal number. Also, some old tools and URLs use that form. For example, 8.8.8.8 is 134744072.

Decimal To IP
Paste a decimal number such as 3232235777, and the tool turns it into dotted form. Also, it accepts numbers up to 4294967295, which is the top of the IPv4 range.
IP To Hex And Binary
Hex shows the same 32 bits in eight digits, so 192.168.1.1 is 0xC0A80101. Dotted hex keeps the four parts, as in c0.a8.01.01.
Then binary shows each part as eight bits. So you can read a mask or a subnet by eye.
Dotted Octal
Some old tools write each part in octal. The tool does that with four digits, such as 0300.0250.0001.0001. So use it to see each part in base eight.
However, the tool reads every part you type as decimal. So 010.0.0.1 means 10.0.0.1.
IPv6 Short And Full Forms
An IPv6 address has eight groups of four hex digits. The short form drops leading zeros in each group and replaces the longest run of zero groups with two colons. Then the full form writes everything out.
So 2001:db8::1 is the same address as 2001:0db8:0000:0000:0000:0000:0000:0001.
IPv6 To Decimal
An IPv6 address is a 128 bit number. So the tool shows it in decimal, hex and binary, and you can compare or sort addresses by value.
IPv4 Mapped IPv6 And 6to4
Every IPv4 address has an IPv6 twin that starts with ::ffff:. First, the tool shows it, and it shows the 6to4 prefix too.
Also, when you type a mapped IPv6 address, the tool shows the IPv4 address inside it.
Reverse DNS Names
A reverse lookup uses a special name. For IPv4, reverse the four parts and add in-addr.arpa. For IPv6, reverse the 32 hex digits, put a dot between them, and add ip6.arpa.
So the tool builds both for you.
Address Type And Class
Also, the tool tells you whether an address is private, loopback, link local, shared, documentation, multicast or public. For IPv4 it also shows the old class, from A to E.
So you know at once if an address can show up on the open internet.
Convert A List
Switch to A list of addresses. Paste one address per line and pick the form you want. Then the tool converts every line.
Also, a line that does not fit gets a question mark in front, so you can find it.
Accepted Formats
First, for IPv4, the tool reads dotted decimal, a plain decimal number, 0x hex, 0b binary, 0o octal and dotted binary. For IPv6, it reads full and short forms, an IPv4 tail, square brackets and a zone name after a percent sign.
Common Uses
Admins use it to read logs, write firewall rules and check blocklists. Developers use it to store addresses as numbers in a database, which makes range checks fast.
Also, students use it to learn how addressing works.
Safe By Design
First, the tool works in your browser. It sends nothing, and it stores nothing. So your addresses stay yours.
On this page
- The tool
- What An IP Address Converter Does For You
- Using The IP Address Converter, Step By Step
- What This IP Address Converter Does Differently
- Habits For Working With IP Addresses
- Common IP Address Mistakes This Tool Helps You Avoid
- IP Address Converter Questions People Ask
- Handy Companions For Network Work
Keep going
Using The IP Address Converter, Step By Step
Four steps take you from one form to all of them.
- 1
Pick one or a list
Choose One address, or A list of addresses.
- 2
Type or paste
Use dotted, decimal, hex, binary or IPv6 form.
- 3
Read the forms
See every form, the type and the reverse DNS name.
- 4
Copy or save
Copy one form, or download the whole result.
What This IP Address Converter Does Differently
It covers both versions, it reads any form, and it keeps your addresses private.
IPv4 and IPv6
Both versions in one place, with short and full IPv6 forms.
Reads any form
Dotted, decimal, hex, binary, octal and bracketed IPv6.
Twelve forms
Decimal, hex, binary, octal, mapped, 6to4 and reverse DNS.
Address type
See at once if an address is private, loopback or public.
Whole lists
Convert hundreds of addresses in one go.
Nothing leaves your tab
Your browser does the maths. We never see your addresses.
Habits For Working With IP Addresses
A few habits keep your address work tidy.
- Store addresses as numbers. A number makes range checks and sorting fast in a database.
- Use the short IPv6 form. It is easier to read, and it is the form most tools print.
- Compare in one form. Convert both addresses to the same form before you compare them.
- Beware of leading zeros. Some systems read a leading zero as octal. This tool reads decimal.
- Check the type. A private address will not work on the open internet.
- Use documentation ranges. Use 192.0.2.0 and 2001:db8:: in examples, so nobody gets traffic.
- Keep the zone name. A link local IPv6 address needs its zone, such as fe80::1%eth0.
- Mind the brackets. IPv6 in a URL needs square brackets around the address.
- Test both versions. Check that your service answers on IPv4 and on IPv6.
- Mind private logs. Addresses in logs can point to real people, so handle them with care.
- Save long lists. Download a file instead of copying hundreds of lines.
Common IP Address Mistakes This Tool Helps You Avoid
Each of these quietly breaks a check.
Comparing text
The text 10.9.1.1 sorts after 10.10.1.1, though the number is smaller.
Leading zeros
A part written as 010 may mean 8 in some systems.
Missing brackets
An IPv6 address in a URL breaks without square brackets.
Two short forms
One IPv6 address can have many spellings. Normalise before you compare.
Trusting the class
Classes are old. Modern networks use prefix lengths.
Mixing up mapped forms
The address ::ffff:1.2.3.4 is IPv6, though it holds an IPv4 address.
IP Address Converter Questions People Ask
Is this ip address converter free?
Yes. It costs nothing, needs no account and has no limits. It runs in your browser, so we have no server cost to pass on.
Do my addresses leave my device?
No. Your browser does the converting. Nothing reaches this site, and we keep nothing.
What is an IP address?
It is a number that names a device on a network. IPv4 uses 32 bits, and IPv6 uses 128 bits.
How do I convert an IP address to decimal?
Type the address in One address mode. Then the Decimal number row shows it. For 192.168.1.1 that is 3232235777.
How do I convert a decimal number to an IP address?
Type the number, such as 3232235777. Then the Dotted decimal row shows 192.168.1.1.
How do I convert an IP address to hex?
Type the address and read the Hexadecimal number row, such as 0xC0A80101. The Dotted hex row keeps the four parts.
How do I convert an IP address to binary?
Type the address and read the Dotted binary row. Each part shows as eight bits.
What is dotted octal?
Each part of the address written in base eight, with four digits. For example, 192 becomes 0300.
Does a leading zero mean octal here?
No. The tool reads every part as decimal, so 010.0.0.1 means 10.0.0.1.
What is an IPv4 mapped IPv6 address?
An IPv6 address that holds an IPv4 address. It starts with ::ffff:, as in ::ffff:c0a8:101.
What is a 6to4 prefix?
A block of IPv6 addresses that an IPv4 address owns. It starts with 2002: followed by the IPv4 address in hex.
How do I shorten an IPv6 address?
Paste it and read the Short form row. It drops leading zeros and replaces the longest zero run with two colons.
How do I expand an IPv6 address?
Paste it and read the Full form row. Then it shows all eight groups with four digits each.
What is a reverse DNS name?
It is the name that a reverse lookup uses to find the host of an address. It ends in in-addr.arpa for IPv4 and ip6.arpa for IPv6.
What is an IP class?
An old way to group IPv4 addresses by their first byte, from A to E. Modern networks use prefix lengths instead.
What does a private address mean?
It belongs to a range, such as 192.168.0.0 to 192.168.255.255, that works inside local networks and is not routed on the open internet.
What is a loopback address?
An address that points back to your own device. It is 127.0.0.1 in IPv4 and ::1 in IPv6.
What is a link local address?
An address that works only on one network link. It starts with 169.254 in IPv4 and fe80 in IPv6.
Which formats can I paste?
Dotted decimal, a decimal number, 0x hex, 0b binary, 0o octal and dotted binary for IPv4, and full or short forms for IPv6.
Does it accept brackets and zone names?
Yes. It accepts an IPv6 address in square brackets, and it drops a zone name such as %eth0.
Can I convert a list of addresses?
Yes. Switch to A list of addresses, paste one address per line and pick the form.
What if a line cannot be converted?
The tool puts a question mark in front of that line, and it counts the skipped lines.
What is the largest decimal number it accepts?
For IPv4, 4294967295, which is 255.255.255.255.
Does it work on a phone?
Yes. The panels stack and the table scrolls. So you can convert addresses on the go.
Handy Companions For Network Work
Converting is one step. These three tools help with the rest.
IP Subnet Calculator
Work out network, broadcast and host ranges.
Open tool →What Is My IP
See the address that websites see for you.
Open tool →Number Base Converter
Convert between binary, octal, decimal and hex.
Open tool →
Ready To Convert An Address?
Type an address, read every form, and copy the one you need. The converter is free, needs no account, and keeps every address on your device.