Just type a number and it'll give you the binary representation, feel free to use in your project.
This project works on the fact that if you keep taking the floor or the number divided by 2 and write the remainder, you'll get the binary code.