"We're excited to add to the Miami Dolphins," Dolphins general manager Dennis Hickey said.
Williams, 25, caught 17 passes for 178 yards and no touchdowns last season.
The former USC wide receiver and All-Pac-12 selection has caught 106 career passes for 1,313 yards and five touchdowns.
Follow me on Twitter: @RavensInsider
Aaron Wilson covers the Ravens for The Baltimore Sun