Yes, you can freeze pesto. Transfer it into a freezer-safe jar or ice cube tray, leaving some space for expansion. Freeze pesto for up to 3 months. You can thaw it overnight in the fridge or add it directly to a hot dish.