An optical Miller coding scheme is proposed with the help of high speed electrical logic gates. With both Miller and Manchester being from the same family of code, i.e., 1B/2B, the former has less electrical spectrum compared with that of Manchester coding and thereby demonstrates a relatively higher tolerance against fiber dispersion within a certain range of distance. The applicability of this code in optical communication has not been explored adequately by the researchers until now, despite its advantages. Here we have investigated the dispersion tolerance of this code and found it to be nearly 1.2 times that of Manchester coding. The dispersion tolerance of Miller code obtained is from −306.4 to +263.9 ps/nm at 1 dB power penalty.