Rekordbox Playlist Converter
Convert Rekordbox playlists with automatic format selection for Pioneer DJ / AlphaTheta CDJ/XDJ equipment.
Features
- Automatic format selection based on CDJ/XDJ model capabilities
- Source-quality preservation: never upsamples, caps to deck + codec ceiling
- Atomic writes, cover-art passthrough, same-format
-c:a copywhen possible --dry-runplan preview,--jobsparallel ffmpeg, JSON manifest output- Standalone XML generation without modifying original Rekordbox library
- MP3 (320kbps), FLAC (lossless), and AIFF conversion via ffmpeg
- Support for 19 Pioneer DJ / AlphaTheta models (CDJ-900 to CDJ-3000X, XDJ-RX to XDJ-AZ)
- CLI interface with Typer and Rich
- 91 unit tests with full type coverage
Overview
Pioneer CDJs have different format support capabilities and known compatibility issues with WAV files (WAV_EXTENSIBLE metadata). This tool addresses these issues by:
- Selecting FLAC for models that support it
- Using MP3 320kbps for models with limited format support
- Avoiding WAV/AIFF to prevent metadata compatibility problems
- Preserving all metadata including cue points, BPM, key, and track analysis
Installation
From PyPI
pip install rekordbox-playlist-converter
From Source
# Clone the repository
git clone https://github.com/b1scoito/rekordbox-playlist-converter.git
cd rekordbox-playlist-converter
# Install with uv (recommended)
uv sync
# Or with pip
pip install -e .
System Requirements
- Python 3.11 or higher
- ffmpeg for audio conversion
Install ffmpeg:
# macOS
brew install ffmpeg
# Ubuntu/Debian
sudo apt install ffmpeg
# Windows
choco install ffmpeg
Usage
List Supported CDJ Models
rekordbox-converter models
List Playlists in Rekordbox XML
rekordbox-converter list rekordbox.xml
Convert a Playlist (Auto-format Selection)
rekordbox-converter convert rekordbox.xml \
--playlist "My Playlist" \
--output ./converted \
--cdj-model XDJ-RX2
Convert with Manual Format Selection
rekordbox-converter convert rekordbox.xml \
--playlist "My Playlist" \
--output ./converted \
--format flac
Full Example
# 1. List all playlists
rekordbox-converter list rekordbox.xml
# 2. Convert for CDJ-3000 (automatically selects FLAC)
rekordbox-converter convert rekordbox.xml \
-p "Tech House 2024" \
-o ./converted \
--cdj-model CDJ-3000
# 3. Import the generated XML into Rekordbox
# File > Import Collection > Select "Tech House 2024 (FLAC).xml"
Format Recommendations by Model
| Model | Recommended | Max Quality | Notes |
|---|---|---|---|
| CDJ-3000X | FLAC | 96kHz/24-bit | AlphaTheta successor (2025), Wi-Fi/streaming/NFC |
| CDJ-3000 | FLAC | 96kHz/24-bit | Highest quality support |
| XDJ-AZ | FLAC | 48kHz/24-bit | AlphaTheta 4-channel flagship (2024) |
| CDJ-2000NXS2 | FLAC | 96kHz/24-bit | Full lossless support |
| XDJ-RX3 | FLAC | 48kHz/24-bit | FLAC supported |
| XDJ-RX2 | MP3 | 320kbps | No FLAC support |
| CDJ-2000NXS | MP3 | 320kbps | WAV/AIFF compatibility issues |
See full model list with rekordbox-converter models
Development
Setup
# Install development dependencies
uv sync
# Install pre-commit hooks
uv run pre-commit install
Running Tests
# Run all tests
uv run pytest tests/ -v
# Run with coverage
uv run pytest tests/ --cov=. --cov-report=term-missing
# Run specific test
uv run pytest tests/test_cdj_detection.py -v
Linting and Type Checking
# Lint and format
uv run ruff check .
uv run ruff format .
# Type check
uv run pyright .
Pre-commit Hooks
Pre-commit hooks run automatically before each commit:
- Trailing whitespace removal
- YAML/JSON/TOML validation
- Ruff linting and formatting
- Type checking should be done manually with
uv run pyright
How It Works
- Reads the Rekordbox XML file to extract playlist information
- Converts tracks using ffmpeg to the selected format
- Creates a standalone XML file containing:
- Only converted tracks from the specified playlist
- Unique track IDs starting from 1000000 to avoid conflicts
- All original metadata (cue points, BPM, key, track analysis)
- Import the generated XML into Rekordbox via File > Import Collection
FAQ
Q: Will this modify my original Rekordbox library? A: No. The tool creates a new standalone XML file without modifying the original.
Q: Why not use WAV/AIFF? A: CDJs have known issues with WAV_EXTENSIBLE metadata. FLAC provides lossless quality without these compatibility problems.
Q: Can I use this for USB export? A: Yes. Import the generated XML into Rekordbox, then export to USB as normal.
Q: What if my CDJ model is not supported? A: The tool will display an error listing all supported models. Open an issue to request additional model support.
Roadmap
See ROADMAP.md for candidate features under consideration — notably a direct Rekordbox library write mode that would skip the manual import step entirely.
Contributing
Contributions are welcome. Please follow these steps:
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Ensure all tests and linters pass
- Submit a pull request
License
GNU General Public License v3.0 - see LICENSE file for details.
Acknowledgments
- Pioneer DJ / AlphaTheta for Rekordbox and CDJ/XDJ equipment
- Typer for CLI framework
- Rich for terminal output
- DJ community for format compatibility insights
Support
Metadata
Release files for rekordbox-playlist-converter 0.3.1
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 |
|---|---|---|---|---|
| rekordbox_playlist_converter-0.3.1.tar.gz | 53.8 kB | With provenance | Details for rekordbox_playlist_converter-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rekordbox_playlist_converter-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for rekordbox_playlist_converter-0.3.1-py3-none-any.whl |
Total release size: 89.4 kB
Release files / rekordbox_playlist_converter-0.3.1.tar.gz
| Download URL | rekordbox_playlist_converter-0.3.1.tar.gz |
|---|---|
| Size | 53.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9929d6a710e685413b2679d3ef93ab6e117b437ddeb34426fe51e99abbe3f2d2
|
|
BLAKE2b-256 checksum How to use checksums |
b3ee3264d4ba512a1ece17d2337f623c1513d0363fbc3a3e9b90c58a59eddeee
|
| 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 May 30, 2026.
Transparency logRelease files / rekordbox_playlist_converter-0.3.1-py3-none-any.whl
| Download URL | rekordbox_playlist_converter-0.3.1-py3-none-any.whl |
|---|---|
| Size | 35.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fa5d0c20d3b58f8d9b908aeb85dd2e56bd57b4353c7936bebfc841b94893c15
|
|
BLAKE2b-256 checksum How to use checksums |
8ddbfb9eadbb40c60088f048955fdfd3328c2be447864a7945035bdce05ba60d
|
| 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 May 30, 2026.
Transparency logSecurity for rekordbox-playlist-converter 0.3.1
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 rekordbox_playlist_converter-0.3.1.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 May 30, 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.