We prove that the martingale dimensions for canonical diffusion processes on a class of self-similar sets including nested fractals are always one. This provides an affirmative answer to the conjecture of S. Kusuoka [Publ. Res. Inst. Math. Sci. 25 (1989) 659–680].