ANSI B16.5 is a standard established by the American National Standards Institute (ANSI) that specifies the dimensions, pressure-temperature ratings, materials, tolerances, marking, and testing of flanges for use in piping systems. It covers pipe flanges and flanged fittings with nominal sizes ranging from 1/2 inch to 24 inches.