Sheldon has a pretty good chart on that topic. Note that many mountain bike rims are technically too narrow for the tyres, but they seem to work. (Or do they?? Several times, I have had to scrap a mountain bike tyre because its sidewall was getting weak and tattered, even though its tread was still excellent. In contrast, I usually scrap a road tyre when its tread wears out.)