We report ferroelectric domain inversion in strontium barium niobate (SBN) single crystals by irradiating the surface locally with a strongly focused ultraviolet (UV) laser beam. The generated domains are investigated using piezoresponse force microscopy. We propose a simple model that allows predicting the domain width as a function of the irradiation intensity, which indeed applies for both SBN and LiNbO 3. Evidently, though fundamentally different, the domain structure of both SBN and LiNbO 3 can be engineered through similar UV irradiation. V