Number Line Generator
Draw a printable number line with any start, end and tick interval — integers, decimals or fractions — with marked points and open or closed interval endpoints.
Number line
Tick values are worked out with exact fraction arithmetic, so a line in quarters or thirds labels cleanly instead of showing 0.7500000001. The PNG is exported at twice the preview size for crisp printing, and the whole thing is drawn on a canvas in your browser — nothing is uploaded.
What is the Number Line Generator?
A number line generator draws a labelled horizontal line between two values with ticks at a chosen interval, and can mark individual points or shade an inequality interval with open or closed endpoints.
- Fractions, decimals and integers accepted for every value
- Exact fraction arithmetic, so quarter and third labels come out clean
- Minor ticks, arrowheads and an optional blank (unlabelled) mode
- Marked points and shaded intervals with open or closed endpoints
- PNG export at double resolution for crisp printing
- Drawn on a canvas in your browser — nothing is uploaded
How to use the Number Line Generator
- 1
Type the start and end values — whole numbers, decimals or fractions such as 3/4.
- 2
Set the interval between labelled ticks and how many minor ticks sit between them.
- 3
Choose a label style, or turn labels off for a blank line to fill in.
- 4
Add marked points, or shade an interval and pick which endpoints are included.
- 5
Download the PNG to print it or paste it into a worksheet.
About the Number Line Generator
The ByteTools Number Line Generator draws exactly the line your lesson needs. Set the start and end, choose the interval between labelled ticks, and add minor ticks in between. Values can be typed as whole numbers, decimals or fractions — 1/4 and 1 1/2 are both understood — and the labels follow suit.
Tick values are worked out with exact fraction arithmetic rather than floating point, so a line in quarters or thirds labels as 1/4, 1/2, 3/4 instead of 0.7500000001. Mark individual points for plotting exercises, or shade an interval with open or closed endpoints to show an inequality such as 2 ≤ x < 6 the way a textbook draws it.
The preview is drawn live on a canvas and exports as a PNG at twice the preview size, so it stays crisp when printed or dropped into a worksheet. Everything happens in your browser — no upload, no account, and it keeps working offline.
Frequently asked questions
How do you show an inequality on a number line?
Shade the part of the line the inequality covers and mark the endpoints: a filled circle means the value is included (≤ or ≥) and a hollow circle means it is excluded (< or >). Choose the matching bracket style here and the circles are drawn for you.
Can I make a number line with fractions?
Yes. Type fractions directly into the start, end and interval boxes — 1/4, 3/8 and mixed numbers like 1 1/2 all work. Set the label style to Fractions and every tick is labelled as a reduced fraction or mixed number.
Why does it say my range does not divide evenly?
The line only draws when the distance from start to end is a whole number of intervals. Going from 0 to 10 in steps of 3 would need 3.33 ticks, so either change the end value to 9 or 12, or pick an interval that divides the range.
How do I make a blank number line for students to label?
Set the label style to “No labels”. The ticks and the line are drawn but the numbers are left off, which is the standard format for asking students to place values themselves.
What are minor ticks for?
They divide each labelled interval into smaller unlabelled steps, so a line labelled every whole number can still show tenths. Set the count to the number of ticks between labels — four minor ticks turn each unit into fifths.
Related tools
Graph Paper Generator
Draw printable graph paper in your browser — square, engineering, dot, isometric or hexagonal grids at any spacing, colour and paper size, exported as PNG.
Math Worksheet Generator
Create printable maths worksheets with randomised addition, subtraction, multiplication, division and fraction questions, plus a matching answer key.
Multiplication Table Generator
Generate any times table or a full multiplication grid, with a blank worksheet mode, shuffled practice order and a clean printable file for the classroom.
Fraction to Decimal Converter
Convert any fraction to its exact decimal form, including repeating decimals like 1/7 = 0.(142857). See the repeating block and period instantly.
Percentage Calculator
Calculate what X% of a number is, what percent one number is of another, and percentage increase or decrease between two values — instantly and free.