| CARVIEW |
Select Language
HTTP/2 302
x-cloud-trace-context: 21fae081e5d60efb64b8dc2577ef40dc
location: /en-US/docs/Web/API/Navigator/deviceMemory
via: 1.1 google, 1.1 varnish, 1.1 varnish, 1.1 varnish, 1.1 varnish
accept-ranges: bytes
cache-control: no-store
server: Google Frontend
content-type: text/plain; charset=utf-8
date: Mon, 29 Dec 2025 11:38:43 GMT
x-served-by: cache-bfi-kbfi7400043-BFI, cache-bfi-kbfi7400043-BFI, cache-sin-wsss1830038-SIN, cache-bom-vanm7210077-BOM
x-cache: MISS, MISS, MISS, MISS
x-cache-hits: 0, 0, 0, 0
x-timer: S1767008323.837120,VS0,VE299
vary: Accept
content-length: 64
HTTP/2 200
x-goog-stored-content-length: 149059
x-goog-metageneration: 1
referrer-policy: strict-origin-when-cross-origin
expires: Mon, 29 Dec 2025 12:38:43 GMT
x-goog-hash: crc32c=jTDmcA==, md5=joq3EsXkbQSh7AJAzCohUg==
content-security-policy: default-src 'self'; script-src 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://*.googletagmanager.com assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; script-src-elem 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://*.googletagmanager.com assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; style-src 'report-sample' 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; connect-src 'self' developer.allizom.org bcd.developer.allizom.org bcd.developer.mozilla.org updates.developer.allizom.org updates.developer.mozilla.org https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://incoming.telemetry.mozilla.org https://observatory-api.mdn.allizom.net https://observatory-api.mdn.mozilla.net https://api.github.com/search/issues stats.g.doubleclick.net https://api.stripe.com; font-src 'self'; frame-src 'self' mdn.github.io *.mdnplay.dev *.mdnyalp.dev *.play.test.mdn.allizom.net https://v2.scrimba.com https://scrimba.com jsfiddle.net www.youtube-nocookie.com codepen.io survey.alchemer.com https://js.stripe.com; img-src 'self' data: *.githubusercontent.com *.googleusercontent.com *.gravatar.com mozillausercontent.com firefoxusercontent.com profile.stage.mozaws.net profile.accounts.firefox.com developer.mozilla.org mdn.dev wikipedia.org upload.wikimedia.org https://mdn.github.io/shared-assets/ https://mdn.dev/ https://*.google-analytics.com https://*.googletagmanager.com www.gstatic.com; manifest-src 'self'; media-src 'self' archive.org videos.cdn.mozilla.net https://mdn.github.io/shared-assets/; child-src 'self'; worker-src 'self';
x-goog-meta-goog-reserved-file-mtime: 1766969347
x-frame-options: DENY
x-goog-stored-content-encoding: identity
x-goog-generation: 1766970510922028
via: 1.1 google, 1.1 varnish, 1.1 varnish, 1.1 varnish, 1.1 varnish
server: Google Frontend
origin-trial: AxVILwizhbMjxFeHOn1P3R8niO1RJY/smaK4B4d1rLzc1gTaxtXMSaTi+FoigYgCw40uFRDwFcEAeqDR+vVLOW4AAABfeyJvcmlnaW4iOiJodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZyIsImZlYXR1cmUiOiJQcml2YXRlQXR0cmlidXRpb25WMiIsImV4cGlyeSI6MTc0MjA3OTYwMH0=
last-modified: Mon, 29 Dec 2025 01:08:30 GMT
x-goog-storage-class: STANDARD
x-cloud-trace-context: c0ead1daa2791f2c3b242c4a039e869b
x-content-type-options: nosniff
content-type: text/html
etag: "8e8ab712c5e46d04a1ec0240cc2a2152"
cache-control: public, max-age=3600
x-guploader-uploadid: AHVrFxPKmwu4SERcmRlKbcWCGiYNuFsXEKhvr3HEpXbKGQEAD2iZ0RIjkezwHYRY7bmh-E5vHU1uYtg
strict-transport-security: max-age=63072000
content-encoding: gzip
accept-ranges: bytes
age: 0
date: Mon, 29 Dec 2025 11:38:43 GMT
x-served-by: cache-bfi-krnt7300057-BFI, cache-bfi-krnt7300057-BFI, cache-sin-wsss1830044-SIN, cache-bom-vanm7210077-BOM
x-cache: MISS, MISS, MISS, MISS
x-cache-hits: 0, 0, 0, 0
x-timer: S1767008323.166155,VS0,VE327
vary: Accept-Encoding
content-length: 19724
Navigator: deviceMemory property - Web APIs | MDN
Toggle sidebar
>
Navigator: deviceMemory property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The deviceMemory read-only
property of the Navigator interface returns the approximate amount of
device memory in gigabytes.
The reported value is imprecise to curtail fingerprinting. It's approximated by rounding down to the nearest power of 2, then dividing that number by 1024. It is then clamped within lower and upper bounds to protect the privacy of owners of very low-memory or high-memory devices.
Value
A floating point number; one of 0.25, 0.5, 1, 2, 4, 8.
Examples
js
const memory = navigator.deviceMemory;
console.log(`This device has at least ${memory}GiB of RAM.`);
Specifications
| Specification |
|---|
| Device Memory> # sec-device-memory-js-api> |
Browser compatibility
See also
Sec-CH-Device-MemoryHTTP header