PKHeX Documentation
A comprehensive C# library for editing and validating Pokémon save files and entity data across all generations.
Quick start
Get up and running with PKHeX.Core in minutes
Install the package
Add PKHeX.Core to your project via NuGet:Or using the Visual Studio Package Manager:
Key features
Everything you need to work with Pokémon save data
Multi-generation support
Work with save files from all Pokémon generations (1-9), including GameCube titles
Legality analysis
Comprehensive validation system to verify Pokémon legality and flag impossible data
Showdown integration
Import and export Pokémon Showdown text format for easy team sharing
Format conversion
Transfer Pokémon between generations with automatic format conversion
Mystery Gift support
Handle event distribution files and convert them to usable Pokémon entities
Type-safe API
Strongly-typed C# classes for every Pokémon format and save file structure
Explore by topic
Deep dive into specific areas of the library
Save files
Understand save file structures, encryption, and how to access game data across different formats
Learn more
Pokémon entities
Work with the PKM class hierarchy and understand how different generations store Pokémon data
Learn more
Legality checking
Validate Pokémon against game rules, encounter data, and move legality constraints
Learn more
Advanced features
Mystery Gifts, ribbons, encryption, memory cards, and other specialized functionality
Learn more
Ready to start building?
Install PKHeX.Core from NuGet and start working with Pokémon save data in your C# projects today.
View installation guide