When I render an image it comes out different than what I see in the viewport. How can i fix this?
Do you have any modifiers (e.g. subdivision), which have different parameter settings for "Viewport" and "Render"?

If so, setting the number to the same value should give you a consistent result!