We simulate the tJ model in two dimensions by means of infinite projected entangled-pair states (iPEPS) generalized to arbitrary unit cells, finding results similar to those previously obtained by the density-matrix renormalization group (DMRG) for wide ladders. In particular, we show that states exhibiting stripes, {\it i.e}. a unidirectional modulation of hole-density and antiferromagnetic order with a π-phase shift between adjacent stripes, have a lower variational energy than uniform phases predicted by variational and fixed-node Monte Carlo simulations. For a fixed unit-cell size the energy per hole is minimized for a hole density ρl∼0.5 per unit length of a stripe. The superconducting order parameter is maximal around ρl∼0.75−0.8.