If you are in a situation where you need to use a PIT file in Odin, things are already in pretty bad shape. For those who don't know, PIT stands for Partition Information Table. Those files contain some pretty important information when flashing some things to your device. XDA Recognized Developer / Retired Forum Moderator lyriquidperfection explains:

The PIT file contains all the relevant information for each required partition such as Partition Name, Flash File Name, Block Size, Block Count etc. and also contains some unknown properties that maybe identifiers or flags of some sort.

Despite their importance, there aren't many ways to edit a PIT file. Well, lyriquidperfection has an answer for that too with a tool called PIT Magic. It's potentially a very useful tool that will allow users to edit, analyze, and otherwise manage PIT files. Since there aren't a lot of tools that allow you to do this, this could be very useful for learning about PIT files or creating your own PIT file, should the need arise. The full features list includes:

Create New PIT Files from scratch.

Edit Existing PIT Files and change all available properties.

Analyze a PIT File and create a human readable report of all Partition entries.

Export PIT Analysis to Text File or Copy to Clipboard direct from the User Interface.

Add or Remove Partition entries to a New or Existing PIT File.

Save options to write changes to Existing PIT File or write a New PIT File altogether.

As stated, this could be a very useful tool. However, a bad PIT file can break your device just as quickly as it can fix it. Before attempting to flash, do exercise the proper caution. For more details, check out the original thread.