> ## Documentation Index
> Fetch the complete documentation index at: https://bun.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://bun.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://bun.manicule.dev/api/mcp.
> Every agent surface: https://bun.manicule.dev/.well-known/llms-manifest.json

# Get the current Bun version (/guides/util/version)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 115 · updated: 2026-08-02 -->
Related: [Upgrade Bun to the latest version](/guides/util/upgrade.md), [Detect when code is executed with Bun](/guides/util/detect-bun.md), [Hash a password](/guides/util/hash-a-password.md), [Generate a UUID](/guides/util/javascript-uuid.md), [Encode and decode base64 data](/guides/util/base64.md), [Compress and decompress data with gzip](/guides/util/gzip.md)

`Bun.version` contains the current version of Bun in semver format.

```ts icon="/icons/typescript.svg" title="index.ts"
Bun.version; // => "1.3.3"
```

***

`Bun.revision` contains the exact `git` commit of [`oven-sh/bun`](https://github.com/oven-sh/bun) that was compiled to produce this Bun binary.

```ts icon="/icons/typescript.svg" title="index.ts"
Bun.revision; // => "49231b2cb9aa48497ab966fc0bb6b742dacc4994"
```

***

See [Utils](/runtime/utils).
