ScreenshotNeo

BlogHow-to

How to Convert a JPG Image to a URL

Upload your JPG to an image host, cloud service, or web server, then copy and test the resulting direct image URL.

By the ScreenshotNeo team1 October 20266 min read

Direct answer: A JPG saved only on your computer or phone does not have a public URL. Upload it to an image host, cloud-storage service, or web server, then copy the resulting link. If another site must display the image itself, use a direct image-delivery URL rather than a file-sharing page.

There are two links people often call an “image URL”:

Link type What it opens Best use
Direct image URL The JPG bytes or an image-delivery response HTML <img>, email images, apps and APIs that fetch image data
Sharing URL A provider page or viewer with permissions Sending a file to people who can view or download it

A Drive or Dropbox share link may work for human sharing but fail in an embed field that expects an image asset. Always test the exact destination.

2. Fastest methods

Imgur

  1. Upload the JPG to Imgur.
  2. Open the uploaded image and choose the option to copy its image address.
  3. Use that direct address where an image source is required.

Imgur says uploaded content can be located with a direct URL. Upload while signed in if you want easier management; anonymous uploaders should retain the direct URL if they may later request deletion. See Imgur’s URL instructions.

Cloudinary

  1. Open Cloudinary’s image-link tool.
  2. Upload or drag in the JPG.
  3. Copy the generated shareable link.

For developer delivery, Cloudinary documents a pattern such as https://res.cloudinary.com/<cloud_name>/image/upload/<public_id>.<extension>. The cloud name and public ID are account-specific; the template is not a ready-to-use URL before upload. Cloudinary also supports transformations through its delivery URL documentation.

Google Drive

  1. Upload the JPG to Drive.
  2. Open Share and set General access to the audience you need.
  3. Copy the sharing link.

Google Drive’s “Anyone with the link” setting lets anyone holding the link use the file without signing in. Google also says the owner’s name and email are visible in the sharing context. A Drive link normally opens a Drive viewer, so verify that your target accepts it as an image source. Follow Google’s sharing instructions.

Dropbox

Upload the JPG, create a shared link, and check it in the destination. Dropbox’s workflow is designed for file sharing and may open a Dropbox page rather than return image bytes. See Dropbox link help and its guidance on sharing outside Dropbox.

Your own website or server

Upload the JPG through your hosting provider or deployment pipeline and place it in a publicly served directory, for example /images/photo.jpg. The final URL uses your domain, such as https://example.com/images/photo.jpg. This gives you control over naming, caching, access rules and deletion, but requires hosting access and an upload process.

3. Make sure the URL is usable

  1. Check permissions. Decide whether the file is public, limited to named people, signed, or temporary.
  2. Open it while signed out. Use a private browser window or a different account. A link that works for the owner may fail for everyone else.
  3. Inspect the response. A direct image should normally return an image content type such as image/jpeg, not an HTML viewer page.
  4. Try the real destination. Paste the URL into the website, email editor, message, or API that will consume it.

Check with cURL

curl -I -L "https://example.com/path/photo.jpg"

Look for a successful status and an image content type. A redirect is acceptable if the final response is the JPG.

Check with Python

import requests

url = "https://example.com/path/photo.jpg"
r = requests.get(url, timeout=30, allow_redirects=True)
r.raise_for_status()
print(r.status_code, r.headers.get("content-type"))
assert r.headers.get("content-type", "").startswith("image/")

Check with Node.js

const url = 'https://example.com/path/photo.jpg';
const res = await fetch(url, { redirect: 'follow' });
if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);
console.log(res.status, res.headers.get('content-type'));
if (!(res.headers.get('content-type') || '').startsWith('image/')) {
  throw new Error('The URL returned a page or another non-image response');
}

4. Embed the direct URL

<img src="https://example.com/path/photo.jpg" alt="Description of the photo">

For an email or app, confirm that the recipient’s client can fetch external images. Some clients block remote images until the recipient opts in.

5. Privacy, access and lifecycle

  • Public links: Anyone who obtains the URL may be able to view the JPG. Do not use them for sensitive photos unless that exposure is acceptable.
  • Restricted links: Named-recipient permissions are better for private sharing but often cannot be used by an unauthenticated embed or API.
  • Signed or expiring links: These limit exposure but can break after expiration.
  • Deletion: Keep the provider account or original URL so you can find and remove the asset later. Imgur specifically recommends signing in for easier management.
  • Derived images: Cloudinary notes that private originals and transformed versions can have different access behavior; review its access-control documentation before publishing sensitive media.

6. Troubleshooting

Symptom Likely cause Fix
The link opens a viewer page You copied a sharing URL Find the provider’s “copy image address” or delivery URL, or use an image host designed for direct delivery.
It works only when signed in Permissions require your account Change access deliberately or use an authenticated workflow that the destination supports.
Embedding shows a broken image The response is HTML, a redirect the client cannot follow, or a blocked hotlink Inspect headers with cURL, follow redirects, and test a direct image URL.
The URL stops working File deletion, expiration, account change, or provider policy Check the asset in the provider dashboard and issue a stable URL where possible.
Private photo became accessible A public link or publicly reachable transformed version was created Revoke the link, review access rules, and regenerate a restricted URL.
Anonymous upload cannot be managed You no longer have the deletion or management URL Retain the provider URL and prefer a signed-in upload for future assets.

7. Performance and cost considerations

For a few photos, the provider’s browser upload is simplest. For a site or application, use stable filenames, caching, and an image-delivery service that can resize or transform images. Large JPGs increase transfer time; resize and compress them before upload when quality permits. Check the provider’s current storage, bandwidth, transformation and retention terms before using it at scale.

Or skip the browser setup

If what you actually need is a URL for a screenshot of a webpage, ScreenshotNeo returns an image from one GET request. It is a screenshot API, not a host for a local JPG, so upload a local photo to an image host first when the source is a file on your device.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the ScreenshotNeo documentation for request options. Cookie banners, newsletter popups and chat widgets are removed before the shot; bot checks, blank pages and failed loads are never billed. Its MCP server lets AI agents take screenshots, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Create a free ScreenshotNeo account.

FAQ

Can I convert a JPG to a URL without uploading it?

No. A URL points to a network location, so the JPG must be served by a host, storage service, or web server.

Usually it is a sharing link to a Drive page. Test it; an embed that needs image bytes may reject it.

Use the least public access that still works for the destination. Public links are convenient, while restricted or signed links reduce exposure.

What file extension should the URL have?

A .jpg suffix is helpful but not sufficient. The server response and content type determine whether consumers can treat it as an image.