Safe water oxidises ammonia and nitrate into nitrate. Nitrate is a relatively harmless substance that can be absorbed by plants as food and is easily removed by regular partial water changes. Fish release ammonia through the gills and by going to the toilet in the water in which they live.
eBay