Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Note: This feature is available in Web Workers, except for Service Workers.
The createObjectURL() static method of the URL interface creates a string containing a blob URL pointing to the object given in the parameter.
For more information, see blob URLs.
To release an object URL, call revokeObjectURL().
Note: This feature is not available in Service Workers due to its potential to create memory leaks.
A Blob (such as a File) or MediaSource object to create an object URL for.
A string containing an object URL that can be used to reference the contents of the specified source object.
See Using object URLs to display images.
| File API # dfn-createObjectURL |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 23, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.