Tools

Home
Base64String to HexHash GeneratorUTF-8URL Encode

Left Pad List Items

Pad each list item on the left side to a specified width with spaces or a custom character.

Your data never leaves your browser
INPUT0 chars
OUTPUT0 chars
Ready

Paste a list and set a width — each line gets padded on the left so the right edges line up. Useful for number columns, invoice codes, or any list where the trailing characters need to match. And everything runs in your browser. Nothing gets uploaded.

Frequently Asked Questions

What does left padding do?

Left padding adds characters (spaces by default) to the beginning of each line until it reaches the specified width. Lines already at or beyond the width are left unchanged.

What does "Auto width" do?

When enabled, the tool automatically uses the length of the longest item as the target width, so all lines align to the same length.

Can I pad with zeros?

Yes. Set the pad character to "0" and the tool will pad each line with zeros on the left. This is useful for formatting numbers.

Is my data safe?

Yes. All processing happens entirely in your browser using JavaScript. No data is ever sent to any server.

Share: