Text Padding
Add padding characters to reach specified width
Text Padding
Add padding characters to text to reach specified width with various alignment options.
Features
- Customizable target width
- Multiple padding character options (space, ideographic space, non-breaking space)
- Left, right, and center alignment
- Option to apply to all lines in multiline text
Use Cases
- Code formatting
- Table data alignment
- Log file formatting
- Print output formatting
How to Use
- Enter text to pad in the left input box
- Adjust target width and padding settings
- View padded result in real-time on the right
- Click "Copy Result" to copy to clipboard
- Click "Download Text" to save as text file
Parameters
- Target Width: Total width after padding
- Padding Character: Character used for padding
- Alignment:
- Left: Text on left, padding on right
- Right: Padding on left, text on right
- Center: Text centered, padding on both sides
- Apply to All Lines: Apply padding to each line separately for multiline text
Notes
- Chinese ideographic space occupies 2 character widths
- Non-breaking spaces may display as regular spaces in some editors
- Width is calculated by character count, not display width