GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — URL: revokeObjectURL() static method - Web APIs | MDN

URL: revokeObjectURL() static method

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

  • See full compatibility
  • Learn more

Note: This feature is available in Web Workers, except for Service Workers.

The revokeObjectURL() static method of the URL interface releases an existing object URL which was previously created by calling URL.createObjectURL().

For more information, see blob URLs.

Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.

If the objectURL argument passed is not a currently-active object URL — for example if it is an invalid URL, non-object URL, or is already revoked — then calling this method does nothing.

Note: This method is not available in Service Workers, due to issues with the Blob interface's life cycle and the potential for leaks.

Syntax

js
URL.revokeObjectURL(objectURL)

Parameters

objectURL

A string representing an object URL that was previously created by calling createObjectURL().

Return value

None (undefined).

Examples

See Using object URLs to display images.

Specifications

Specification
File API
# dfn-revokeObjectURL

Browser compatibility

See also

  • Blob URLs
  • Using files from web applications
  • Using object URLs to display images
  • URL.createObjectURL()

Help improve MDN

Learn how to contribute

This page was last modified on Feb 9, 2026 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.