Text 72

Text length truncation

Only the specified number of characters remain; ellipsis is added

Input

The example value has been entered. Check it immediately or change the value.

Integer · minimum 0 · maximum 50000

Run with Ctrl or ⌘ + Enter

Input is processed in the browser. Refreshing returns a sample value.

Result

Check or change the value using the example value result.

Up to 50,000 characters. Input and results are processed in this page’s memory and not saved. Line breaks use LF.

Share result

Share the tool link and result text together. No URL is included in the result. Check the below content and then share it.

Calculation·conversion criteria

Long text length · Keep only the beginning and mark as omitted.

N grapheme units on the front + omitted indicator (only when exceeded)

Input example

abcdef into 3 characters → abc…

Restricting ABCDE to 3 characters and adding … gives ABC…. If the original text is below the limit, no skip marker is added.

How to use

  1. Use the provided example value or change the text, remaining characters, and ellipsis items.
  2. Click Verify result and check the following result.
  3. Result can be copied if needed.

Frequently Asked Questions

Can the total length of the result exceed the input limit?

Possible. The limit is the number of text groups to be preserved, and ellipsis marks are added after them. Consider the length of ellipsis marks as well to match the total text length limit.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors