Number Line Generator

Integers, decimals and fractions. Printable, with exact tick values.

Range and labels

Number line

Number line from -5 to 5, step 1-5-4-3-2-1012345

11 ticks · 11 visible labels

All tick values (11)

-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5

Guide

Number Line Generator: Fractions, Decimals & Printable SVG

Build a number line for fraction practice, decimal intervals or comparing negative and positive numbers. Set Start, End and Step to calculate exact ticks locally. Add up to five named points, choose which ticks have labels, then copy the values, download a vector SVG or print a worksheet. No AI response is needed.

For

Teachers, tutors, parents and learners preparing number-line practice.

Problem

A custom range needs evenly spaced, accurate ticks without hand-drawing or rounding fractions.

Output

An exact labeled or blank number line, SVG image and printable A4 or Letter worksheet.

Use when

Fractions between zero and oneSet Start to 0, End to 1 and Step to 1/8 to create nine ticks including both endpoints. Fraction labels simplify automatically.
Negative and positive valuesUse a range such as -5 to 5 with Step 1. Add A: -2 and B: 3 to mark positions for comparison.
Blank practice sheetsChoose Blank tick labels to leave the scale unlabeled, or Endpoints only to give learners two anchors. Remove named points too when making a fully blank exercise.

What to include

Range and intervalEnter whole numbers, decimals with up to four places or simple fractions such as -1/4. Values must be between -10000 and 10000, with reduced denominators at most 10000. End must exceed Start and Step must be positive.
Exact endpointsThe range must divide evenly by Step, with at most 201 ticks including endpoints. For 0 to 1, Step 1/4 works; Step 0.3 does not. Invalid input clears the diagram and disables export instead of keeping stale results.
Named pointsEnter one Label: value per line, such as A: 1/2. Add at most five points with labels up to sixteen characters. Points need not fall on ticks but must stay inside the range.

Steps

01Choose a scaleSet Start, End and Step. The diagram and full tick list update together. Match input uses fractions when the range or step contains a fraction; otherwise it uses exact decimals where possible.
02Set the visible labelsChoose every tick, every second or fifth tick, endpoints only, or blank. Narrow diagrams omit additional labels to prevent collisions; all ticks remain in the diagram and All tick values keeps the complete list. Repeating decimals remain exact fractions.
03Export or printCopy tick values or download the number line as SVG. For a worksheet choose A4 or US Letter and one to six identical lines, three per page. Use Print / Save as PDF, match the paper size and review browser print settings.

Try this

Eighths
Start 0; End 1; Step 1/8; Fractions

Nine exact ticks from 0 through 1, with 2/8 simplified to 1/4.

Tenths
Start 0; End 0.3; Step 0.1

Four ticks: 0, 0.1, 0.2, 0.3, without floating-point artifacts.

Signed quarters
Start -1; End 1; Step 1/4; A: -1/2

Nine ticks across zero and one named point at negative one half.

Good output

  • Both endpoints appear as exact ticks.
  • Tick count equals (End - Start) / Step + 1.
  • Fractions are reduced and repeating decimals are not rounded into false exact values.
  • Out-of-range points and invalid scales disable export.
  • The diagram, accessible tick list, SVG and print packet share the same calculated values.

Avoid

Using a step that misses the endpointChoose a step that divides the range exactly. The tool will not silently shift the endpoint or add a shorter final interval.
Expecting every label on a small screenDense scales keep all tick marks but hide some text labels. Use the full tick list to inspect every value, or increase Step for a less dense diagram.
Entering expressionsUse simple values such as 1/3 or 0.25, not arithmetic expressions, mixed numbers, inequalities or jump instructions.

Limits

One horizontal scale, at most 201 ticks and five named points. No inequality graphing, interval notation, arithmetic jumps or automatic exercise answers.
Decimal inputs support up to four places. Repeating decimal output is shown as a fraction; mathematical values are exact, while screen positions use pixels.
Printed lines repeat the same diagram, three per page. Blank tick labels do not remove named points or the separate accessible values list.
Settings stay in the open page only. This tool adds no generation API, saved history or student-data collection; existing page delivery and aggregate analytics still apply.
Save as PDF depends on browser support. Disable browser headers and footers and review print preview before distributing worksheets.

FAQ

Can I make a fraction number line?

Yes. Enter simple fractions such as 1/8 for Step and select Fractions or Match input. Values are calculated with rational arithmetic and reduced to their simplest fraction form.

How do I make a blank number line?

Select Blank under Tick labels. For a completely blank exercise, also clear Named points. Tick marks remain, and the complete values list is still available separately on screen.

Can a point sit between two ticks?

Yes. A named point can be anywhere in the selected range, even if it is not a tick. Points outside the range produce an error rather than being clipped.

Why are some labels hidden?

The diagram reduces visible labels when they would collide at the available width. Tick positions do not change, and All tick values contains the complete exact sequence.

Can I download a PDF or SVG?

The download button saves a vector SVG. The print button opens your browser's print dialog, where Save as PDF may be available. Choose A4 or US Letter; one to six repeated number lines print three per page.

Does this use AI or generate random numbers?

No. It calculates a fixed mathematical scale locally. For picking random values, use the separate Random Number Generator.