---
title: "Measure Length"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/text/measurelength
markdown: https://docs.nodetool.ai/nodes/nodetool/text/measurelength.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/text/measurelength.md
---

# Measure Length

**Type:** `nodetool.text.Length`

**Namespace:** `nodetool.text`

## Description

Measures text length as characters, words, or lines.
    text, analyze, length, count

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| text | `str` |  | `` |
| measure | `enum` | Choose whether to count characters, words, or lines | `characters` |
| trim_whitespace | `bool` | Strip whitespace before counting | `false` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `int` |  |

## Related Nodes

Browse other nodes in the [nodetool.text](./) namespace.
