---
title: Get text length text in Centrldesk
description: Get text length in Centrldesk
---

[Centrldesk help center ](https://www.centrldesk.com/help)

# [Get text length text in Centrldesk](https://www.centrldesk.com/help/library-text-functions-length)

 Written by [Sebastian](https://www.centrldesk.com/help/author/sebastian) | Mar 28, 2022 4:43:25 PM

The Text Length block is used to get the length of a text.

For an empty text the length is 0.

Example A:

The result of the input 'Centrldesk' is 10.

Example B:

The result of the input 'Hello' is 5.

Result:

The length of a text as a number.

Tips and best practices:

 For an empty string, length is 0.

Library:

Text

[View full post](https://www.centrldesk.com/help/library-text-functions-length)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Sebastian"
  },
  "dateModified" : "2022-04-28T09:15:14.887Z",
  "datePublished" : "2022-03-28T16:43:25Z",
  "headline" : "Get text length using Text Length block",
  "image" : {
    "@type" : "ImageObject",
    "height" : 520,
    "url" : "https://7836215.fs1.hubspotusercontent-na1.net/hubfs/7836215/library-text-functions-length-2.png",
    "width" : 1900
  },
  "mainEntityOfPage" : "https://www.centrldesk.com/help/library-text-functions-length",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Centrldesk help center"
  }
}
```