Text Padder pads text by adding a repeating, nonempty pattern on the left, right, or both sides, using a target of 0–1,000,000 Unicode code points. It never truncates the source, so text that already meets or exceeds the target is returned unchanged.

Use Text Padder for fixed-width plain-text labels, simple identifiers, test fixtures, aligned text fields, display mockups, or consistent borders around short strings. Padding, previewing, and TXT download creation happen locally in the current browser tab, and no text is uploaded to Lizely.

how to use text padder
How to Use Text Padder for Exact Code-Point Length

Choose the right length unit

Exact length in this tool means Unicode code points, not bytes, words, terminal columns, or visible glyphs. Text Padder measures strings with JavaScript string iteration, which counts code points rather than UTF-16 code units. The JavaScript string iterator documentation explains how that counting model works.

A single-code-point emoji counts as one, while a combining mark counts separately from its base character. A multi-code-point emoji sequence can count as several. This distinction matters when the text contains emoji, accents, flags, joined emoji, or other sequences that may look like one character but contain multiple code points.

Measure What Text Padder guarantees What it does not guarantee
Unicode code points When the target is at least as long as the source, the source plus padding reaches the requested count. A count of words, visible glyphs, or grapheme clusters.
UTF-8 bytes The downloaded text is encoded as UTF-8. A fixed total number of bytes.
Display width The number of code points in the completed string. Equal terminal columns or equal on-screen width in a proportional font.

Pad the text to the target length

Use the following sequence to create and review a padded result:

  1. Enter the source text. Paste the text that needs padding into the source field. Keep the original wording, punctuation, spaces, and line breaks exactly as required because Text Padder will add to that source rather than edit it.
  2. Set the exact target length. Enter a non-negative whole number from 0 through 1,000,000. This is the total code-point length of the final output, including both the original text and the added padding. Decimal, negative, missing, and nonnumeric target values are rejected.
  3. Enter the padding pattern. Type any nonempty text, including a single character, several characters, spaces, punctuation, emoji, or line breaks. The pattern repeats from its first code point as needed and is cut exactly at the requested length.
  4. Choose the padding side. Select left to place the added characters before the source, right to place them after the source, or both to distribute them across the two edges.
  5. Pad the text and inspect the result. Run the padding action, then check the reported length and the complete preview. The preview is the authoritative place to confirm the placement and visible appearance of the added text.
  6. Download the TXT result when ready. After checking the preview, create and download the completed text as a UTF-8 TXT file. The original source remains in the editor for comparison.

Decide where the padding belongs

The side setting controls where every added code point appears. It does not change the source text, and the result is deterministic: the same accepted source, target, pattern, and side always produce the same string.

Side Result
Left Padding is added before the source, so the original text appears at the end of the padded string.
Right Padding is added after the source, so the original text remains at the beginning.
Both The missing length is divided between the two edges. When the missing count is odd, the right side receives the extra code point.

A multi-character pattern is useful when each edge needs a repeated sequence rather than one fixed symbol. For example, a pattern can cycle through several punctuation marks, alternate letters, or repeat a short border string. The pattern is not appended beyond the requested target, even if that would require another complete repetition.

Follow a complete padding example

Suppose the source is cat, the target length is 8, the padding pattern is “-_”, and both sides are selected.

Step 1: Calculate the missing length.Missing length = target length − source length = 8 − 3 = 5 code points.

Step 2: Divide the missing length.Because 5 is odd, the left side receives the smaller share of 2 code points, while the right side receives the extra code point for a total of 3.

Step 3: Repeat and cut the pattern.The first 2 characters of the repeated “-_” pattern are “-_” for the left. The first 3 are “-_-” for the right. No additional complete pattern is included.

Step 4: Join the pieces.The completed result is -_cat-_-, containing 8 Unicode code points in total.

Check the output before downloading

The complete padded output appears in the preview after the operation runs. Check both the reported code-point length and the visible placement before replacing source material or using the file. Changing any field clears the previous result, which helps prevent an old preview from being mistaken for the output of the new settings.

Pay particular attention when the pattern contains spaces, line breaks, punctuation, or emoji. These are accepted as ordinary text, but spaces and some invisible or visually subtle characters can be difficult to distinguish in a preview. The reported length is useful when the added characters are not easy to see by eye.

When you click the download control, the tool creates a temporary Blob URL for the UTF-8 TXT file, starts the browser download, and schedules the URL for immediate revocation. The MDN Blob documentation describes the browser object used for the generated file. The download action is separate from padding and previewing, and the source stays available in the editor.

Understand validation and size limits

The target must be a whole number from zero through 1,000,000. A zero target is valid, but the no-truncation rule means nonempty source text remains unchanged rather than being emptied. Set a larger target when characters must be added.

The padding pattern cannot be empty when characters need to be added. Its emptiness does not affect a source that already meets or exceeds the target because no padding is required in that case. A source longer than the one-million-code-point ceiling is not expanded, while the target itself cannot exceed the documented limit.

The ceiling also bounds memory use, repeated concatenation, preview rendering, and download creation. Text Padder does not make an oversized source fit a smaller target by cutting it down. It only extends text when the requested target is longer.

Use code-point padding for compatible tasks

This workflow fits plain-text outputs whose required length is defined in Unicode code points and where adding characters is the intended operation. Typical uses include fixed-length test fixtures, short identifiers, aligned text records, label mockups, and decorative borders around compact strings.

Do not treat the result as byte padding for a binary protocol, database column, cryptographic block, or encoded file. UTF-8 characters can use different numbers of bytes, so an exact code-point total does not guarantee an exact byte total. If a specification defines storage length, use a format-aware byte utility instead.

Likewise, do not assume equal code-point counts will create equal terminal columns or equal visual alignment. East Asian wide characters, emoji, tabs, combining sequences, and proportional fonts can all occupy widths that differ from their code-point counts. Text Padder measures text length; it does not calculate terminal display width.

The safest workflow is therefore straightforward: choose the intended length unit, enter the source and a valid target, select the appropriate side, inspect both the number and appearance of the result, and download only after the preview matches the intended plain-text format.

For a deeper look, see Text Multiplier: Repeat Text with Exact Separators.