sdbtool
A tool for converting Microsoft Application Compatibility Database (SDB) files to XML format.
Table of Contents
Features
- Parses SDB files used by Windows for application compatibility.
- Converts SDB data into readable XML or JSON format.
- Dump file attributes in SDB-recognizable format
- Useful for analysis, migration, or documentation.
- Pure Python and cross-platform - no native
apphelp.dlldependency.
Getting Started
Installation
Sdbtool is available as sdbtool on PyPI.
Invoke sdbtool directly with uvx:
uvx sdbtool sdb2xml your.sdb # Convert the file 'your.sdb' to xml, and print it to the console
uvx sdbtool sdb2xml your.sdb --output your.xml # Convert the file 'your.sdb' to xml, and write it to 'your.xml'
uvx sdbtool sdb2json your.sdb # Convert the file 'your.sdb' to json, and print it to the console
uvx sdbtool sdb2json your.sdb --output your.json # Convert the file 'your.sdb' to json, and write it to 'your.json'
uvx sdbtool sdb2xml old.sdb --target-os 0501 # Resolve tag names as of Windows XP (for older databases)
uvx sdbtool attributes your.exe # Show the file attributes as recognized by apphelp in an XML-friendly format
uvx sdbtool info your.sdb # Show some details about the SDB file (version, description, ...)
Or install sdbtool with uv (recommended), pip, or pipx:
# With uv.
uv tool install sdbtool@latest # Install sdbtool globally.
# With pip.
pip install sdbtool
# With pipx.
pipx install sdbtool
Updating an installed sdbtool to the latest version with uv:
# With uv.
uv tool upgrade sdbtool
# With pip.
pip install --upgrade sdbtool
# With pipx.
pipx upgrade sdbtool
Tag names and --target-os
Tag names are not constant across Windows versions: some are renamed (e.g. OS_PLATFORM became GUEST_TARGET_PLATFORM), and some are dropped (e.g. OS_SKU exists on XP but not on Windows 11).
sdb2xml / sdb2json therefore accept --target-os <VERSION> to resolve names as of a particular Windows release; without it, names are resolved against the newest known table.
An unknown tag is rendered as InvalidTag_0xXXXX.
RUNTIME_PLATFORM (0x4021)
The tag id 0x4021 has two unrelated encodings depending on the database version:
- Version 3 (Windows 10+): one DB-level tag holding a
(guest, host)architecture pair bitmask (RuntimePlatformType, e.g.AMD64 | X86_ON_AMD64). - Version 2 (Vista..Windows 8.1): a per-entry tag holding a little-endian list of up to three host-platform selector bytes (
0x40 | code), OR-combined, with bit0x80000000negating the match (RuntimePlatformV2Type). Codes:0=X86,9=AMD64,6=IA64,12=WOW64 (any 32-bit-on-64-bit),13=NATIVE64 (any native 64-bit). Reversed fromSdbpCheckRuntimePlatformin pre-Win10apphelp.dll; e.g.0x4D4C40->X86 | WOW64 | NATIVE64.
sdbtool decodes each form according to the file's header major version.
Contributing
Contributions are welcome! Please open issues or submit pull requests.
Metadata
Release files for sdbtool 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sdbtool-0.9.4.tar.gz | 29.6 kB | With provenance | Details for sdbtool-0.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sdbtool-0.9.4-py3-none-any.whl | Python 3 | none | any | Details for sdbtool-0.9.4-py3-none-any.whl |
Total release size: 67.8 kB
Release files / sdbtool-0.9.4.tar.gz
| Download URL | sdbtool-0.9.4.tar.gz |
|---|---|
| Size | 29.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a06d4fd155f068fec432617beaf34b002e1def8f08afa2be62f8303168d42be
|
|
BLAKE2b-256 checksum How to use checksums |
a84aaebc1ad09f32493a359932f1c544293a400caf61373e0a183d1e17f6c526
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / sdbtool-0.9.4-py3-none-any.whl
| Download URL | sdbtool-0.9.4-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ca5a0e82fb954ed43fc8632a12f9f713baddc68a44afb823d46c31f35d5a479
|
|
BLAKE2b-256 checksum How to use checksums |
2701b5c5eee4401d647bdf430b045d4bef28e53014d5a8544049b556c01acedb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logSecurity for sdbtool 0.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sdbtool-0.9.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.