Free tool

Add leading zeros

Add leading zeros so every line has the same width, for example 7 becomes 0007. You can pad with any character, on the left or the right.

The example is loaded. Paste your own list to replace it.

1
Pad lines to a width

→ 3 lines

Width (characters)

Fill with

Fill on the

Your text

3 lines

Result

3 lines

What it does

Fill short lines with a character, like 7 → 0007.

Settings you can change

  • Width (characters)
  • Fill with
  • Fill on the: Left, Right

When to use it

Product codes lost their zeros in a spreadsheet. Put them back before you import the list.

Example: add leading zeros

Settings used: Width (characters): 5.

Input

Result

Often used with

Add 1, 2, 3 … in front of each line.

Put the same text at the start or end of every line.

All free tools

Your text stays on this computer
The list editor works on your computer. The text you paste or open is not uploaded or stored by HeyScraper, and closing the page clears it. Saved recipes are kept in this browser only.

Got your list from a web page?

HeyScraper turns the page you’re on into a spreadsheet, so you can skip the copying and pasting. Free: 500 pages a month.

Get HeyScraper