In o-nitrophenol, there is intramolecular H-bonding b/w hydrogen and oxygen bcoz -NO2 group is very close to -OH group but in case of p-nirophenol there is no intramolecular H-bonding b/w hydrogen and oxygen bcoz -NO2 group is at opposite position to -OH group.So, proton can easily be released from p-nitrophenol.That is why p-nitrophenol is more acidic than o-nitrophenol.