the ascii character 6 that you type into your browser = hex 36 = binary 0011 0110

the decimal 66 = 42 hexidecimal

it is very important to specify what you are converting to and from in these situations. Both are correct answers if the question is unspecific.