.kt Kotlin source code

Text & source code

MIME typetext/x-kotlin
DescriptionKotlin source code
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .kt file?

A .kt file is a “Kotlin source code” (MIME type text/x-kotlin).

How do I open a .kt file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .kt file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.kt shows the guessed type.

Which format is .kt based on?

Technically a .kt file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .kt?

The MIME type is text/x-kotlin. In the Apache web server: AddType text/x-kotlin .kt; in nginx: types { text/x-kotlin kt; }.

Nearby entries