# Okio

> I/O library for Java, Android and Kotlin Multiplatform built on ByteString and Buffer

Source: https://talira.ai/catalog/okio-rpa1njpc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / io](https://talira.ai/categories/libraries/io), [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / kotlin](https://talira.ai/categories/languages/kotlin), [languages / java](https://talira.ai/categories/languages/java)
- Licence: Apache-2.0[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]

Okio is a library that complements java.io and java.nio to make reading, storing and processing data easier. It's built around ByteString, an immutable byte sequence that encodes itself as hex, base64 and UTF-8, and Buffer, a growable byte queue that moves data between buffers without copying. Its Source and Sink streams honour timeouts on both reads and writes, and it adds a multiplatform FileSystem API. It started as part of [OkHttp](https://talira.ai/catalog/okhttp-5e4hqag3.md), which still uses it.

## Links

- Website: https://lysine.dev/okio/
- GitHub: https://github.com/lysine-dev/okio

## Problems it solves

- read and write binary data on Android without fighting java.io streams
- add timeouts to socket reads and writes in a JVM app
- work with files the same way in a Kotlin Multiplatform project

## Features

- ByteString: immutable bytes with hex, base64 and UTF-8 encoding
- Buffer: growable byte queue that moves segments without copying
- Source and Sink streams with timeouts on reads and writes
- multiplatform FileSystem API, with a fake file system for tests
- Kotlin Multiplatform as well as Android and the JVM

## Trust

Overall: 0.56 out of 1.
Signals: maintenance 0.75, adoption 0.79, momentum 0.54, community 0.83, backing 0.00, extensibility 0.00.

- last commit 24 days ago
- 23 commits in the last 90 days
- 9.1k GitHub stars
- 116 contributors

## Sources

[^1]: https://github.com/lysine-dev/okio/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://lysine.dev/okio/ (checked 29 Nov 2026)
