Is swiss pass valid from basel to bern?
Yes it is, assuming you mean the Swiss Travel Pass.
Everything about this pass can be found on this page: www.myswissalps.com/sw isstravelpass. You'll notice there's also a section about where it's valid - you will find a downloadable map there which shows you exactly where your pass is valid, where you get discounts, etc.
Have a nice trip!
All you need to know about traveling by train, bus or car in Switzerland.
Hand picked Swiss hotels and other accommodations are right here.