Kotlin source code
File type: Source code and script file
A kt file extension identifies source code written in the Kotlin programming language. A kt file is a plain-text source file used in Kotlin projects.
Kotlin source files are commonly edited in IntelliJ IDEA and Android Studio.
File type category:
Source code and script file
Date updated: November 22, 2026
Kotlin is a statically typed programming language developed by JetBrains. It interoperates with Java and is widely used for Android app development.
A kt file contains Kotlin source code, such as function and class declarations. It is part of a project that can be compiled with the Kotlin toolchain; project configuration determines the target and how the source is built.
Kotlin development is available on Windows, macOS, and Linux through tools such as IntelliJ IDEA and Android Studio. Its compiler can target the Java Virtual Machine, JavaScript, or native platforms.
Open the Kotlin source file in IntelliJ IDEA or Android Studio to view and edit it with Kotlin syntax support. For code completion and project-aware features, open the containing Kotlin project in the IDE.
A Kotlin source file is not normally converted as a standalone document. Build the project with the Kotlin compiler to produce output for its configured target, such as JVM bytecode, JavaScript, or native code; the target depends on the project setup.
text/x-kotlinSoftware applications that can open kt files:
Microsoft Windows
Apple macOS / Mac OS X
Linux/Unix
Multiplatform
Software applications that can edit kt files:
Microsoft Windows
Apple macOS / Mac OS X
Linux/Unix
Multiplatform
Software capable of saving kt files:
Microsoft Windows
Apple macOS / Mac OS X
Linux/Unix
Multiplatform
Software apps that create kt files:
Microsoft Windows
Apple macOS / Mac OS X
Linux/Unix
Multiplatform