Calculate EPSG:4326 coorditates from x,y pixels inside a tile

I have a 256x256 tile from OpenStreetMap tile server. Lets say `5/11/18.png`

And I have a X,Y pixel from this reference tile (not global) where `0 < x < 256` and `0 < y < 256`.

Is there any way to find the EPSG:4326 coordinates from this pixel?

Already try this but can't get the explanation.

Actually every time I ask "Convert x,y" to google I get "x,y" as being the entire tile coordinate from the grid not the pixel from the tile.

EDIT: Just to illustrate here is the image at `5/11/18.png`. It is all I have. I have no way to know anything about the resolution or grids...

• once you know the top left corner it is simple maths of dpiscalenumber of pixels, though the answer is likely to be in EPSG:3857 rather than EPSG:4326 Commented Oct 11, 2022 at 15:50
• Huh... almost got it. So... need I to know the DPI ? How can I guarantee this? I need to calculate this from many different sources not only OSM. Commented Oct 11, 2022 at 16:41
• Should be defined in the tile matrix definition Commented Oct 11, 2022 at 18:26
• Sorry.. you're making assumptions. What matrix definitions? I have only a URL to a tile that's not mine. Commented Oct 11, 2022 at 18:54
• Then assume 96 DPI and hope for the best Commented Oct 11, 2022 at 19:13