<!-- Markdown twin of https://pixelvault.dev/tools/photo-to-url/ -->

Free tool

# Photo to URL

Drop a photo from your phone or camera and get a link you can share anywhere, no signup. Copy it as a direct URL, Markdown or HTML. Want the link to stay? [Keep any upload, free →](/signup/)

Drag & drop an image here

or

Choose an image

or paste a screenshot (Ctrl/⌘+V)

JPEG, PNG, WebP, AVIF · up to 2 MB

## Turn a photo into a link

Some places want a link, not a file: a form with an "image URL" field, a forum post, a marketplace listing, a chat that strips attachments, a GitHub issue. Drop the photo above and you get a hosted link that opens in any browser. It works the same from a phone: tap **Choose an image** and pick the photo from your gallery.

Picture to URL, pic to link, foto to URL: they all mean the same thing here. Drop the photo, copy the link.

## Before you share: location and size

-   **Location.** Phones often save the GPS position inside the photo, and this tool hosts the file as-is, so that data goes with it. If you don't want to share where it was taken, run it through the [image compressor](/tools/image-compressor/) first. It redraws the photo in your browser, which leaves the location behind, and gives you a link directly.
-   **Size.** This tool takes photos up to 2 MB, and full-resolution phone photos are often bigger. The [image compressor](/tools/image-compressor/) resizes and shrinks them in your browser; about 2000 pixels wide is plenty for sharing.
-   **iPhone HEIC.** A `.heic` file won't display on most of the web. [HEIC to URL](/tools/heic-to-url/) converts it to JPEG in your browser and hosts that.

## Which format is your photo?

Camera and phone photos are almost always JPEG, and this page hosts them as-is with no quality loss. Screenshots are usually PNG. Photos exported for the web are often WebP or AVIF. All four work here. For a specific format, see [JPG to URL](/tools/jpg-to-url/) or [PNG to URL](/tools/png-to-url/), or use [image to URL](/tools/image-to-url/) for GIFs and SVGs too.

### Doing this from an agent, script or CI job?

Skip the browser. One HTTP call uploads the file with no account or API key, and the CDN URL comes back at `.data.url` in the JSON response:

```
curl -F "file=@image.png" https://api.pixelvault.dev/v1/images
```

Keyless links last about 30 days; add a free API key for managed images with no fixed expiration. Claude, Cursor and other agents can also use the [MCP server](/blog/mcp-image-hosting/) or the [four ways an AI agent can upload an image and get a URL](/ai-agent-image-upload/).

## When you need the link to last

Links from this tool are **temporary** and disappear within 24 hours: fine for a quick share, not for a listing, a profile or a website. Save the photo to a free account right after uploading to remove that fixed expiry, or use the [image hosting API](/image-hosting-api/) to upload photos from your own app. Free-plan retention applies.

FAQ

## Photo to URL — FAQ

How do I turn a photo into a URL?

Drop the photo onto this page, choose it from your phone or computer, or paste a screenshot. It's uploaded and you get a link straight away that you can copy as a plain URL, Markdown or HTML. No account needed.

Does the link keep my photo's location?

It can. The photo is hosted exactly as uploaded, so any embedded metadata stays in the file, including the GPS location that phones often add. To remove it, run the photo through the image compressor first: it redraws the image in your browser, so camera details and location are not normally carried over, and it can give you a link directly.

My photo is over 2 MB. What can I do?

This free tool takes photos up to 2 MB. Phone photos are often bigger, so shrink it in the image compressor first (resizing to about 2000 pixels wide is plenty for sharing), then get the link there. A free PixelVault account takes images up to 5 MB through the API.

Which photo formats work?

JPEG, PNG, WebP and AVIF. Files are checked by their actual content, not their name. iPhone .heic photos need converting first: the HEIC to URL tool does that in your browser.

Is the photo compressed or changed?

No. It's hosted byte-for-byte, with no re-encoding or resizing, so the link shows exactly the photo you uploaded.

How long does the photo link last?

Links from this free tool are removed within 24 hours. To keep one, save the photo to a free PixelVault account right after uploading; free-plan retention applies.
