Square magnets are typically axially magnetised between the two square faces.
From the tiny 3mm x 3mm x 3mm neodymium cube through to the substantial 50mm x 50mm x 20mm neodymium block made from the strongest grade available to buy, square magnets are commonly used when maximum strength is required from a compact magnet.