Number system conversion practice with answers

Number system conversion practice for binary, octal, decimal and hexadecimal: problems appear instantly, you type your answers and get them checked – with the solution and working. Print it as a worksheet with an answer key if you like.

Source: Wikipedia – Positional notation. Updated: .

Number systems – practice worksheetName: ____________________

    Spaces are fine, and so are prefixes such as 0b, 0x or 0o. Enter moves to the next problem.

    problems
    3 to 30
    Same settings + same number = the same worksheet, also in a shared link. “New problems” picks a new number.
    My ToolboxYour inputs are saved in this browser only.

    Result

    How it is calculated

    How the practice worksheet works

    Choose the problem type (for example decimal → binary or binary → hexadecimal), the number range and how many problems you want. The worksheet appears immediately. Type your answers and tap “Check”: correct answers get a tick, and for wrong ones the answer and the working are shown. “Show answers” reveals every answer at once. “New problems” rolls a new worksheet; the settings and the variant are part of the link, so a whole class can open the same sheet.

    The methods at a glance

    Which range fits?

    Up to 15 needs four bits – a good start, and the range of one hex digit. Up to 255 is one byte (eight bits), the usual level in computer science classes and the range of each part of an IPv4 address or an RGB colour value. 4,095 (12 bits) and 65,535 (16 bits) train longer numbers and the groups of four in hexadecimal. Numbers are never smaller than an eighth of the range, so you do not get only tiny values.

    Printing as a worksheet

    “Print” outputs only the worksheet with empty answer lines and a name line; everything else on the page is hidden. With the option to add the answer key, a second page with all answers follows for the teacher. To get a PDF, choose “Save as PDF” in your browser’s print dialog. Nothing is uploaded; the problems are generated in your browser.

    To convert a single number, use the number base converter with working – it also handles fractions, negative numbers and every base from 2 to 36.

    Frequently asked questions

    How do I convert a decimal number to binary?

    Divide the number by 2 again and again and write down the remainders. Read from bottom to top, the remainders are the binary number. Example: 13 ÷ 2 = 6 remainder 1, 6 ÷ 2 = 3 remainder 0, 3 ÷ 2 = 1 remainder 1, 1 ÷ 2 = 0 remainder 1 gives 1101.

    How do I convert binary to decimal?

    Write the place value above each digit (from the right 1, 2, 4, 8, 16 …) and add up the values of the digits that are 1. Example: 1101 = 8 + 4 + 1 = 13.

    How does binary to hexadecimal work?

    Group the bits in fours from the right. Each group is a hex digit from 0 to F: 1010 = A, 1011 = B, 1111 = F. So 1011 0110 becomes B6.

    Which digits does hexadecimal use?

    Sixteen: 0 to 9 and the letters A to F for the values 10 to 15. Upper or lower case does not matter when you type, and prefixes such as 0x are accepted.

    Are there answers to the problems?

    Yes. “Check” shows the answer and the working for every wrong response, and “Show answers” reveals all of them. When printing, you can add the answer key on a separate page.

    Can I save the worksheet as a PDF?

    Yes: tap “Print” and choose “Save as PDF” in the print dialog. The sheet has empty answer lines and a name line; the answer key goes on a second page if you ask for it.

    Which problems suit a computer science class?

    Start with decimal ↔ binary up to 15 or 255, then binary ↔ hexadecimal and “Mixed”. The range up to 65,535 lets you practise 16-bit values such as addresses and colour codes.

    Sources and legal basis

    As of: · Editorial policy

    Related tools