This page generates a printable 4-line handwriting practice worksheet — the kind used in Indian primary schools. Each row consists of four horizontal ruled lines colored (Red, Blue, Blue, Red).
All parameters are encoded in the URL so you can bookmark or share a specific layout. Tweak the parameters below by editing the URL directly.
| Parameter | Default | Unit | Description |
|---|---|---|---|
page_width |
8.5 | inches | Total page width |
page_height |
11 | inches | Total page height |
margin |
0.5 | inches | Uniform empty padding on all four sides |
line_thickness |
0.5 | pt | Stroke weight of the ruled lines |
line_gap |
4.5 | mm | Center-to-center distance between adjacent lines within a row |
row_gap_multiplier |
1.2 | × row_height | Gap between consecutive rows as a multiple of the row height |
min_border_row_gap_multiplier |
0.5 | × row_gap | Minimum padding between the margin and the first/last row, as a multiple of row_gap |
Default worksheet (8.5 × 11 in, letter portrait):
Larger line gap (great for beginners):
A5 paper (148 mm × 210 mm ≈ 5.83 × 8.27 in):
The engine maximizes the number of rows N that fit within the available height
(page_height − 2 × margin) while respecting the minimum border gap.
The resulting block is then vertically centered on the page by distributing
the remaining slack equally above and below.
line_gap parameter. Start with 6mm and move down. Most worksheets I've seen use 4mm which
is too small
for first time writers.
row_gap_multiplier is primarily there to avoid the feeling of overwhelm.