Kotlin Base64 encode Online
Encode UTF-8 text as Base64.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
The browser encodes text as UTF-8 bytes before Base64. The result can be decoded back to the original bytes.
Café
Q2Fmw6k=
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.