All tools

Number Zero Padding

Pad numbers with leading zeros to a fixed width.

Non-numeric lines pass through unchanged.

Output
0001
0023
0456
hello
7890

About

Take 1, 2, 3 and turn them into 001, 002, 003. Useful for filenames, IDs, and lining up numbers in lists. Paste a list of numbers, pick a width, get padded output.

How to use

  1. Paste a list of numbers (one per line).
  2. Set the desired width.
  3. Copy the padded list.

FAQ

What if a number is wider than the width?+

It's left as-is. Padding only adds zeros, never truncates.