We designed an electromagnetic refractor and a phase transformer using form-invariant coordinate transformation of Maxwell's equations. The propagation direction of electromagnetic energy in these devices can be modulated as desired. Unlike the conventional dielectric refractor, electromagnetic fields at our refraction boundary do not conform to the Snell's law in isotropic materials and the impedance at this boundary is matched which makes the reflection extremely low; and the transformation of the wave front from cylindrical to plane can be realized in the phase transformer with a slab structure. Two dimensional finite-element simulations were performed to confirm the theoretical results. (C) 2008 Optical Society of America.