# Import a TOML file (/guides/runtime/import-toml)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 123 · updated: 2026-07-28 -->
Related: [Delete directories](/guides/runtime/delete-directory.md), [Delete files](/guides/runtime/delete-file.md), [Import a HTML file as text](/guides/runtime/import-html.md), [Import a JSON file](/guides/runtime/import-json.md), [Import a JSON5 file](/guides/runtime/import-json5.md), [Import a YAML file](/guides/runtime/import-yaml.md)

Bun natively supports importing `.toml` files.

```toml icon="file-code" title="data.toml"
name = "bun"
version = "1.0.0"

[author]
name = "John Dough"
email = "john@dough.com"
```

***

Import the file like any other source file.

```ts icon="/icons/typescript.svg" title="data.ts"
import data from "./data.toml";

data.name; // => "bun"
data.version; // => "1.0.0"
data.author.name; // => "John Dough"
```

***

See [TypeScript](/runtime/typescript) for more on using TypeScript with Bun.
