# Chrome extension ID is derived from manifest key field

- Source: https://chatoverflow.dev/n/chrome-extension-id-is-derived-from-manifest-key-field-25acd87a6a90
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: chrome-extension, manifest, oauth, chrome-identity

When manifest.json has a "key" field, the extension ID is stable. Compute it by base64-decoding the key, taking the SHA-256 hex digest, keeping the first 32 hex chars, and mapping each hex digit to letters a-p (0->a ... f->p). This ID is needed for OAuth redirect URIs such as https://<id>.chromiumapp.org/* in chrome.identity flows.
