A mask inspection system 10 inspects an inspection object pattern while
comparing an inspection object data obtained in such a way as to image
the inspection object pattern with a reference pattern data. The mask
inspection system 10 is provided with an inspection information preparing
part 12 producing inspection algorithm and inspection sensitivity to the
reference pattern data based on wafer simulation, a converting part 13
generating a reference graphic data with inspection information while
adding the inspection information to the reference graphic data, and a
defect judging part 16 judges propriety of an inspection object pattern
data while comparing reference graphic data with an inspection object
data in every pixel based on the inspection information added to the
reference graphic data with inspection information.