Abstract: A method of run-length-limited encoding strings of data including a sequence of synchronizing bits having a value of binary zero for providing corresponding encoded bits which, when recorded on a magnetic storage medium, provide a maximum number of flux transitions. The steps of this method include serially receiving such a string of input bits, dividing the string of input bits into unique bit groups, replacing each group with a corresponding collection of encoded bits conforming with the limitations of the run-length-limited encoding scheme, including replacing each divided group of three input binary zeros into a collection of six encoded bits having two binary ones separated by two binary zeros, serially transmitting these collections of encoded bits for recording the same on the medium in the same sequence as the corresponding input bit groups are received.