TypeScript to Kotlin Converter

Transform your TypeScript code into clean, idiomatic Kotlin instantly

TS TypeScript
KT Kotlin

How It Works

1

Paste TypeScript

Enter your TypeScript code in the left editor panel or load a sample.

2

Click Convert

Our converter transforms types, interfaces, classes, and functions to Kotlin.

3

Copy or Download

Copy the Kotlin code to clipboard or download it as a .kt file.

Type Mappings

TypeScript Type Kotlin Type Description
stringStringText values
numberInt / DoubleNumeric values (Int for integers, Double for decimals)
booleanBooleanTrue/false values
anyAnyDynamic type
voidUnitNo return value
Array<T>List<T>Ordered collection
Map<K, V>Map<K, V>Key-value pairs
nullString?Nullable types use ? suffix
T[]Array<T>Array types
Promise<T>suspend fun: TAsync functions become suspend

Watch How It Works