Tesla Motors Inc. has extended the battery range for a new version of the Model S sedan to 335 miles on a charge, furthering the Silicon Valley auto maker’s lead in the all-electric car race.

On its website Friday, the company revealed the new version of the Model S, called the 100D, with a 100 kilowatt-hour battery that can hold a charge for 20 miles longer than the previous best.

In...