I'm still not sure exactly what you're trying to convert. Does a string of bits represent a character? If so, how many (8 or 9 is common). Once you've defined what you're looking for, it's a pretty trivial conversion (I'm used to APL, so it would involve a program of maybe a dozen keystrokes.)