Skip to tool

Kotlin Format string Online

Apply printf-style placeholders to arguments.

The output updates as you type. The tool processes input in your browser.

Worked example

Provide arguments as a JSON array and a format using %s, %d, %i or %f. Double a percent sign to display it literally.

Format string
"Site: %s Year: %d"
Sample input
["manuals", 2026]
Sample output
Site: manuals Year: 2026

Using this operation in Kotlin

The interactive result uses JavaScript. Kotlin String APIs expose character indexes and case conversion. Check whether your code targets JVM, JS, Native, or Wasm when depending on platform-specific utilities.

Kotlin reference