This question already has an answer here:

I'd like to transform a shapefile into raster file in QGIS and the opposite way back also (raster to shapefile).

Can you help me?

marked as duplicate by PolyGeo May 6 at 22:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

For Shapefile to raster see How to convert a vector layer to raster?.

You're looking for "Rasterize" and "Polygonize" tools in Raster menu (gdal plugin).

Not the answer you're looking for? Browse other questions tagged or ask your own question.