Kotlin

Share Kotlin code online.

Share Kotlin data classes, coroutine patterns, or Spring Boot code: syntax-highlighted and encrypted with one paste.

textdrop.sh/xk4mR2
1data class User(2    val id: Long,3    val name: String,4    val email: String,5)67fun List<User>.groupByDomain(): Map<String, List<User>> =8    groupBy { it.email.substringAfterLast('@') }910suspend fun fetchUsers(ids: List<Long>): List<User> = coroutineScope {11    ids.map { id ->12        async { userRepository.findById(id) }13    }.awaitAll().filterNotNull()14}
Every paste includes

Kotlin syntax highlighting

Paste Kotlin code and get a shareable link with full syntax highlighting, server-side rendered with no JavaScript overhead.

Burn after read

Deleted on first open. Can't be viewed twice.

Password protection

Add a password for end-to-end encryption with no raw key stored.

Configurable expiry

Set pastes to expire after 1 hour, 1 day, 7 days, or up to 30 days. Gone when you say so.

No account needed

No sign-up, no email, no ads. Paste and share in seconds.

How it works
Plain Text
Markdown
Code
DB_HOST=db-01.prod.internal
DB_USER=api_svc
DB_PASS=xK9$mP2!qR7nLw2
REDIS_URL=redis://:abc@cache:6379
delete after setup — expires 1hr
7 days
Share
textdrop.sh/
7 days · plain text
Use cases
  • 01Share Android Compose UI code
  • 02Send coroutine and Flow patterns
  • 03Share Spring Boot Kotlin handlers
  • 04Distribute sealed class hierarchies
  • 05Send extension function libraries
FAQ
Does the Kotlin grammar support multiplatform syntax?+

Yes. The grammar supports expect/actual declarations and Kotlin Multiplatform syntax.

Is there a size limit?+

Pastes up to 5 MB are supported.

Is my code encrypted?+

Yes. AES-256-GCM encryption runs in your browser before upload. Non-password pastes store the raw data key server-side for simple sharing and raw access; password-protected pastes keep the raw key out of the server.

Other languages
Drop your code