---
title: "To String"
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/tostring
markdown: https://docs.nodetool.ai/nodes/nodetool/text/tostring.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/text/tostring.md
---

# To String

**Type:** `nodetool.text.ToString`

**Namespace:** `nodetool.text`

## Description

Converts any input value to its string representation.
    text, string, convert, repr, str, cast

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| value | `any` | The value to convert to string. | `` |
| mode | `enum` | Conversion mode: 'str' for normal string, 'repr' for JSON-quoted representation. | `str` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

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