I would like to save my attributes selection as a layer. I have read on other posts to do it by selecting the layer with the attribute selection, then right clicking on it and choosing "save selection as...". However, by right clicking on the layer with selected attributes, there is no "save selection as..." in my case.

enter image description here

How can I save/export the attribute selection as a new file?


2 Answers 2


For QGIS 2.x versions

You are doing fine, but just need to go to next step.

enter image description here

Tick on Save only selected features.

  • I get "Creation of layer failed (OGR error: Attempt to create csv layer (file) against a non-directory datasource.)" The features are from a PostGIS database.
    – chris
    Commented Aug 29, 2018 at 21:10

For QGIS 3.x versions

Let's assume there is a polygon layer called 'grid' with its corresponding attribute table, see image below.


Select a feature (or features) that has (have) to be saved/exported.


And then by beans of RMB over the layer 'grid' use Export > Save Selected Features As...

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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