Demagnetizer Price

How does a tool magnetizer and demagnetizer work these things pictured below.I get how the magnetizer works a permanent magnet magnetises the tool bit, but how is the magnetic fields arranged in the demagnetizer in order to demagnetize tools.