Tool:PKHeX
| On this wiki | Facts · Code · Notes · Topics |
|---|
Open source (GPL-3) C# save and Pokémon file editor and legality checker; its PKHeX.Core library documents the save and entity layouts of every mainline Pokémon generation and is the best code reference for Pokémon save formats.
PKHeX (https://github.com/kwsch/PKHeX) edits saves and entity files of the core Pokémon games, Generation 1 to 9, and checks their legality. Its PKHeX.Core library is the de-facto specification of the formats: Saves/SAV1.cs, SAV2.cs, SAV3.cs (plus Saves/Substructures/Gen3/), PKM/PK3.cs to PK9.cs, PKM/Util/PokeCrypto.cs (encryption and block shuffle for every generation) and Saves/Util/Checksums.cs.
License GPL-3: read it for layouts and describe them in your own words; do not copy its code.
Format pages written from it: Format:Pokémon Generation 3 save file, Format:PK3, Format:PK4 and PK5, Format:PK8, PA8 and PK9, Format:Pokémon Generation 1 and 2 save files.
Code & repositories
- https://github.com/kwsch/PKHeX @
641c26ba100225f3605e5a44b61b3b16e15a3774· license: GPL-3.0 (declared by the contributor; GitHub's detector did not recognize LICENSE)
Pokémon save and entity editor; PKHeX.Core is the reference for save sectors, checksums and PK3-PK9 encryption (PokeCrypto.cs, SAV3.cs, PK3.cs, SAV1.cs, SAV2.cs).
Tested on: source read, not run: source read, not run · checked 2026-10-18