Residue chlorine content in desalted crude oil streams can be a serious issue due to its highly corrosive nature. Online monitoring of chlorine has an important economic aspect for the oil industry. An online total chlorine process analyzer has been developed for this purpose.