Divide it continously by 2. If there is a remainder, write 1, if there is none, write 0. read it backwards. For example:
5 divide by 2 is 2 remainder 1.
2 divide by 2 is 1 remainder 0.
thus binary of 5 is 101.
get it? kinda difficult to explain without paper eh