runtime.getVersion()

Returns the extension's version from the version manifest key.

Syntax

js
let extensionVersion = await browser.runtime.getVersion()

Parameters

None.

Return value

A string containing the extension's version as declared in the manifest.

Note: The returned version may differ from the string in the file because the browser can parse and serialize it.

Examples

Get the extension version string:

js
const version = browser.runtime.getVersion();
console.log(version);

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
getVersion
Chrome – Full support
Chrome 143 (Release date: 2025-12-02)
footnote Full support
Edge – Full support
Edge 143 (Release date: 2025-12-05)
footnote Full support
Firefox – No support
Firefox
footnote
footnote See bug 1992418
Opera – Full support
Opera 127 (Release date: 2026-02-02)
footnote Full support
Safari – Full support
Safari 26.2 (Release date: 2025-12-12)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote
footnote See bug 1992418
Safari on iOS – Full support
Safari on iOS 26.2 (Release date: 2025-12-12)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.

See also