Pad Center Text Online

Online tool for adding padding characters to the left and right side of each lines if it's shorter than length. Padding characters will be truncated if they exceed length.

About Pad

This tool is used to make text in each lines to have at least certain length by adding padding characters, where the original text is placed on the center.

Example 1

Text:

abc
a
abcdefghij
Length:
10
Characters:
.
Output:
...abc....
....a.....
abcdefghij

Example 2

Text:

abc
a
abcdefghij
Length:
10
Characters:
_-
Output:
_-_abc_-_-
_-_-a_-_-_
abcdefghij