The contract announced Saturday includes a salary of $5 million in 2024 and a club option salary of $5 million in 2025 with a $1 million buyout and charitable contributions.
Rojas, 33, was acquired last month from the Miami Marlins for minor league infielder Jacob Amaya. He returns to the Dodgers for the second time, having made 85 appearances with the club in 2014 as a rookie.
Rojas hit .236 with six home runs and 36 RBIs in 140 games last season. He has been in the majors for parts of nine seasons while playing five different defensive positions.