Skip to content

What does this Windows error code mean?

Paste the code from Windows Update, DISM, an installer or a script, or paste the whole log. You get what the code means, which part of Windows raised it and, for the common ones, how to fix it. Decoded in your browser; nothing is sent.

Error code, or the log text it appeared in

Type it the way you saw it: 0x80070005, 80070005, -2147024891 or 5 all work.

How a Windows error code is built

Most codes are 32-bit HRESULTs. The top bit says whether it failed, the next bits say which part of Windows raised it (the facility) and the last 16 bits are the code within that facility. That is why codes that start with 0x8024 are all Windows Update, 0x800F codes come from DISM and component servicing, and 0x8007 codes carry an ordinary Windows error number in their last four digits. Codes that start with 0xC are usually NTSTATUS values from the kernel; when a program crashes with one, our exception code reference explains it.

The decoder reads those bits exactly as Microsoft's [MS-ERREF] Windows Error Codes specification lays them out, so even a code we have never written up gets a correct breakdown. The explanations, causes and fixes below are written by us for the codes people run into most.

Codes we explain in full

Each one has its own page with the causes, the fixes in order and what Microsoft's documentation says about it. All of them in one list: Windows error codes.

Windows Update

Codes starting 0x8024 come from Windows Update itself.

DISM, servicing and Windows features

Codes starting 0x800F come from component servicing: DISM, cumulative updates and optional features.

Windows errors inside an HRESULT (0x8007)

The last four hex digits are a plain Windows error number. Each also appears as 0x8007 followed by those digits.

General COM and API results

Codes every Windows program can return.

Questions

Why does the same error show up as 0x80070005, 80070005 and -2147024891?

They are one 32-bit number written three ways: hexadecimal with and without the 0x prefix, and the same bits read as a signed decimal, which is how PowerShell and some installers print it. Paste any of them and you get the same answer.

What does 0x8007 at the start of a code mean?

The 8 says the operation failed and 007 is facility 7, FACILITY_WIN32: the last four hex digits are an ordinary Windows error number. 0x80070005 is Windows error 5, access denied, and 0x80070070 is error 112, disk full.

Is what I paste sent anywhere?

No. The decoding runs in your browser. If you press Share, the link carries only the single code shown, never the rest of what you pasted.

The code is not in your library. Is the answer still right?

The decoded part is: severity, facility and code come straight from the bits, as Microsoft’s [MS-ERREF] specification defines them. What we cannot add for an unlisted code is the hand-written cause and fix, so the page says so and points you to Microsoft Learn.

Put this on your site

Paste this code into a help page, forum or blog to show the tool itself. It runs in the visitor's browser like it does here, needs no sign-in, and links back with a small Powered by line.

Related tools