Skip to main content

Shorten text

Cut a text to a maximum length and add an ending such as …, if you like at a word break, e.g. for subjects, columns or messages.

Command in the String toolkit · id ooa.string/shorten · 4 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TextStringYesText to shorten.
Maximum lengthNumberNo100Longest result, ending included.
EndingStringNo…Added when the text is cut; empty adds nothing.
Whole wordsBooleanNotrueCut at the last space rather than in a word.

Outputs​

OutputTypeWhat it is
resultStringThe shortened text (unchanged when it was short enough).
shortenedBooleanTrue when the text was cut.