---
title: "idToToken"
sidebar_label: "idToToken"
description: "Kotlin binding reference: idToToken."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Tokenizer](index.md)/[idToToken](idToToken.md)

# idToToken

[common]\
fun [idToToken](idToToken.md)(id: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)

The surface text of a token id; an id out of range fails with `NOT_FOUND`.