Heater for a fluid intended to pass through a canister for a fuel tank, comprising a casing fitted with two end pieces, a hollow body situated inside the casing and at least one heating element.