Skip to main content

rekordbox-key-tool

CI

Converts track keys in a rekordbox.xml library file from standard musical notation (as exported by Mixed In Key / MIK) to Camelot Wheel notation used by rekordbox.

The problem

When Mixed In Key analyzes your tracks and writes key data back to rekordbox, it sometimes writes keys in standard notation (Am, C, F#m) rather than the Camelot wheel format that rekordbox uses natively (8A, 8B, 2B). This tool fixes that — in bulk, across your whole library.

Quick start — no coding needed

  1. Download the latest version for your computer from Releases:

    • Windows: rekordbox-key-tool-windows.exe
    • macOS (Apple Silicon): rekordbox-key-tool-macos-arm64.zip
  2. Export your library from rekordbox: File → Export Collection in xml format.

  3. Convert it

    • Windows: drag rekordbox.xml onto rekordbox-key-tool-windows.exe.
    • macOS: unzip, then in Terminal run ./rekordbox-key-tool ~/path/to/rekordbox.xml.

    You get rekordbox_fixed.xml next to the original. The original is never touched.

  4. Import rekordbox_fixed.xml back into rekordbox (see Importing).

The downloads aren't code-signed yet. Windows SmartScreen may say "Windows protected your PC": click More info → Run anyway. On macOS, if it's blocked, right-click → Open, or run xattr -d com.apple.quarantine rekordbox-key-tool once.

With Python

Requires Python 3.9+. No dependencies outside the standard library.

# Run straight from PyPI with uv, no install step
uvx rekordbox-key-tool rekordbox.xml

# Or install it
pip install rekordbox-key-tool

Usage

# Just the file: writes rekordbox_fixed.xml, original untouched
rekordbox-key-tool rekordbox.xml

# Preview changes without modifying anything
rekordbox-key-tool --input rekordbox.xml --dry-run

# Show every track that changes
rekordbox-key-tool --input rekordbox.xml --dry-run --verbose

# Convert and write to a named file
rekordbox-key-tool --input rekordbox.xml --output rekordbox_fixed.xml

# Convert in place (backs up to rekordbox.xml.bak first; an existing backup is never overwritten)
rekordbox-key-tool --input rekordbox.xml --inplace

Update check

When you run it yourself (not from a script or pipe), the tool asks GitHub for the latest release at most once a week and tells you at the end of the run if a newer version is out. It only sends a plain request to the GitHub releases API; nothing about your library leaves your computer. If GitHub can't be reached, it says nothing and carries on.

Switch it off with --no-update-check, or set the environment variable REKORDBOX_KEY_TOOL_NO_UPDATE_CHECK=1.

Recognised key formats

Format Examples Result
Standard / MIK Am, F#m, Bbm, C, Eb 8A, 11A, 3A, 8B, 5B
Long form F# minor, Ab Major, A min, C maj 11A, 4B, 8A, 8B
Unicode accidentals A♭m, F♯ 1A, 2B
Camelot, odd casing / zero-padded 8a, 08A 8A
Open Key (Traktor, Beatport) 1m, 1d, 6m 8A, 8B, 1A
Combined Am/8A, 8A - Am 8A

Keys already in Camelot are left as they are. Anything not recognised is left unchanged and listed at the end of the run. Please report those as an issue.

Where is rekordbox.xml?

Export it from rekordbox: File → Export Collection in xml format

Default locations:

  • Windows: C:\Users\<user>\Documents\Pioneer\rekordbox\rekordbox.xml
  • macOS: ~/Library/Pioneer/rekordbox/rekordbox.xml

Importing into rekordbox

Back up your rekordbox library first (File → Library → Backup Library).

  1. Preferences → Advanced → Database → rekordbox xml → Imported Library: choose rekordbox_fixed.xml.
  2. Make sure rekordbox xml is ticked under Preferences → View → Layout, so it shows in the tree view.
  3. In the tree view, open rekordbox xml, right-click All Tracks → Import to Collection.

Key format mapping

Standard (MIK) Camelot
Ab minor / G# minor 1A
B major 1B
Eb minor / D# minor 2A
F# major / Gb major 2B
Bb minor / A# minor 3A
Db major / C# major 3B
F minor 4A
Ab major / G# major 4B
C minor 5A
Eb major / D# major 5B
G minor 6A
Bb major / A# major 6B
D minor 7A
F major 7B
A minor 8A
C major 8B
E minor 9A
G major 9B
B minor 10A
D major 10B
F# minor / Gb minor 11A
A major 11B
C# minor / Db minor 12A
E major 12B

Development

python -m unittest discover -s tests -v

Releases are built by GitHub Actions when a v* tag is pushed: Windows .exe, macOS binary, PyPI package and the GitHub Release page.

License

MIT — see LICENSE.


Part of squelch303

Metadata

Release files for rekordbox-key-tool 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rekordbox-key-tool 1.2.0
File Size Uploaded Provenance Actions
rekordbox_key_tool-1.2.0.tar.gz 11.6 kB With provenance Details for rekordbox_key_tool-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rekordbox-key-tool 1.2.0
File Interpreter ABI Platform Actions
rekordbox_key_tool-1.2.0-py3-none-any.whl Python 3 none any Details for rekordbox_key_tool-1.2.0-py3-none-any.whl

Total release size: 21.7 kB

Release files / rekordbox_key_tool-1.2.0.tar.gz

Download URL rekordbox_key_tool-1.2.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cae0e2c685c3d1bf8868c2317349ded8487636ad5dccf8a68236fd14f3a55218
BLAKE2b-256 checksum
How to use checksums
961b1c8b0f79f3a1f58ca748134e3e4480b2c630beafb05af2ff5d6d5a898c5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Release files / rekordbox_key_tool-1.2.0-py3-none-any.whl

Download URL rekordbox_key_tool-1.2.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3635ab53d288bcc1644c723a4a25536899bf76d61b09d5bef2281b193cd2879f
BLAKE2b-256 checksum
How to use checksums
34ce894ec7ffa1bbd178c72ba00fe84b0f5bd4cf85826ae5aca7d2cdab56dc5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Security for rekordbox-key-tool 1.2.0

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.

Select from 2 files

Attestation for rekordbox_key_tool-1.2.0.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 Nov 16, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page