A heat dissipating apparatus includes a frame, an elastic body, a magnetic member and a coil. The frame has an opening. The elastic body is disposed on the frame, and the frame and the elastic body define a space. The magnetic member is located corresponding to the space and disposed at one side of the elastic body. The coil is located corresponding to the periphery of the space and disposed on the frame. An electronic device with the heat dissipating apparatus is also disclosed.