This mod allows you to view the NBT data of item stacks in a readable format inside the item tooltips. To use it, please enable the advanced tooltips (F3 + H). You can manually scroll the view and adjust its size using the key mappings (the default controls are in a screenshot below). You can also scroll fast with the help of another key mapping. It's basically a Forge alternative of the NBT Tooltip mod but with a slightly different format and controls. This mod also adds another line in the tooltip that tells you the slot number that the item stack is in.
I made this mod a couple of years ago by somebody's request because there was no mod like this available for Forge that they were happy with. I assume things have changed but it doesn't seem like by much. I was planning to release the mod back when I originally made it but then I kept being busy with something and somehow 2 years had passed lol. It was very easy to port this mod from 1.14.4 to 1.17.1, so I'm pretty sure I'll continue doing it for the future Minecraft releases as well.
For a more complete list of features and some answers to frequently asked questions, please refer to the mod's CurseForge page.
If you're having trouble installing any of the mods, then some of the guides might help.