Peter has pointed to one good site. another is www.viamichelin.com which will give you choice of routes and tolls. Not much to choose between them so try both.
In my experience, tolls in spain are so low as to be negligable, but you have to watch the French tolls particularly with a caravan (as opposed to a motor van) as the difference between Autoroute and RN can be several bottles of red.