In this work we study thermodynamics of 2+1-dimensional static black holes with a nonlinear electric field. Besides employing the standard thermodynamic approach, we investigate the black hole thermodynamics by studying its thermodynamic geometry. We compute the Weinhold and Ruppeiner metrics and compare the thermodynamic geometry with the standard description on the black hole thermodynamics. We further consider the cosmological constant as an additional extensive thermodynamic variable. In the thermodynamic equilibrium three dimensional space, we compute the efficiency of the heat engine and show that it is possible to be built with this black hole.