Mex was a municipality in Saint-Maurice in the canton of Valais in Switzerland.

On 1 January 2013, Mex became part of the municipality Saint-Maurice.