After the nutcracker type was added to the question…
Those are frankly the worst type of nutcracker. You have no control over how far the jaws close & not much leverage - so you tend to try get each nut as far into the jaws as you can to get enough force, then squeeze two-handed with all the force you can - risking nut, knuckles & any nearby glassware in the process;) Once the nut gives, the jaws slam shut, smashing the whole nut to smithereens.
Short of buying some expensive specialist cracker (that in most houses will get used once a year at xmas) then Willeke's idea of a pipe wrench is perfect. You have essentially an adjustable gap so you don't crush them & lots more leverage. You can get a really cheap & cheerful version for maybe $£€ 5 if you don't ever need to tug on pipe nuts, only walnuts.
If you're in the UK you need to search "water pump pliers" to get the correct type. Searching actually 'pipe wrench' or adjustable spanner/wrench won't find the right thing. A search on a 'proper' toolshop like B&Q, Screwfix etc will cost you 20 - 40 quid, but you can get cheapo on eBay for under £4. Perhaps also a supermarket or general tool stockist of the type you find at cheap indoor/outdoor markets (those stores that sell a 40-piece screwdriver set for 2.50 that will last until you need to actually undo a screw;) if there's anything like that open where you live & you need one for xmas day.
As these all have a click (or twist) adjust, you size it to close to slightly smaller than the nut, then fire away. Loads of leverage, loads of control & a measured gap that won't smash them.
Once you own one of these tools, you'll be amazed at how many other uses you can find for it - even if you never go anywhere near a pipe ;) Tight lids (be careful on glass jars of course), reluctant screw tops on anything, from food to glue tubes… Mine get far more use than the actual nut crackers buried at the back of the cutlery drawer.