We present higher-dimensional generalizations of the Buchdahl and Janis-Robinson-Winicour transformations which generate static solutions in the Einstein-Maxwell system with a massless scalar field. While the former adds a nontrivial scalar field to a vacuum solution, the latter generates a charged solution from a neutral one with the same scalar field. Applying these transformations to (i) a static solution with an Einstein base manifold, (ii) a multi-center solution, and (iii) a four-dimensional cylindrically symmetric solution, we construct several new exact solutions.