The predictive model of octane numbers, of gasoline was developed by using MLR and PLS method of chemometrics. It is applicable to forecast the MON, RON and PON of gasoline of catalytic cracking, catalytic reforming, alkylating as well as blended products. A near infrared optical multichannel analyzer (NIR-OMA) and a software package of octane number were developed. Combining both mentioned above a NIR-OM octane number analyzer was developed. With this NIR-OMONA one can obtain the MON, RON and PON (antiknock index) data in less than 1/2 minute with an accuracy of 0.6 ON unit and a precision of 0.1 ON unit by using 3-15 mL gasoline sample.