You can use both Android Studio and IntelliJ IDE software to convert Java code to Kotlin . If you are using a Kotlin based project in Android Studio or IntelliJ IDE software and try to copy/paste Java code, you should get a prompt to automatically convert Java code to Kotlin (as shown in the screenshot below).