What an IP rating tells you
An IP (Ingress Protection) code from IEC 60529 rates how well an enclosure
keeps out solids and liquids. It is written as the letters IP followed by two
characteristic digits, for example IP67. The first digit covers solid particles
and dust; the second covers water.
How it works
The two digits are independent scales. The first digit runs 0–6: 0 is no
protection and 6 is fully dust-tight. The second digit runs 0–9 (with 9/9K
for high-pressure hot jets): 0 is none, 7 is temporary immersion to 1 m, and 8 is
continuous immersion at a stated depth. Either position can be replaced by X
when that property was not tested — IPX8 rates water only.
This lookup splits the code, validates each digit, and prints the matching IEC 60529 description for both.
Tips and example
IP54 means dust-protected (limited ingress, no harmful deposit) and protected
against splashing water from any direction — a common rating for outdoor light
fittings. IP68 is the highest common consumer rating: dust-tight and safe for
continuous immersion. Remember the water scale is not strictly cumulative —
a device rated IP67 is not guaranteed against pressure jets (level 6) unless it
also claims that.