Convert Wix Image to URL
- Wix Crafters
- Jun 29
- 1 min read

Website Developers often look up to convert wix image to url. If you’ve worked with Wix sites, you may have noticed that images stored in your Media Manager have a Wix-specific URL format, starting with wix:image://. While this works seamlessly within Wix, there are many situations where you might need the direct HTTP URL of an image — for example, to use it in custom code, third-party integrations, or external APIs.
Luckily, converting a Wix-managed image to a standard HTTP URL is very straightforward. You can do this with a simple JavaScript function.
Here’s a ready-to-use snippet to convert a Wix image URL to a standard HTTP URL:
export function wixImageToHttpUrl(wixImageUrl) {
const match = wixImageUrl.match(/^wix:image:\/\/v1\/([^\/]+)/);
return match && match[1] ? `https://static.wixstatic.com/media/${match[1]}` : null;
}How it works:
✅ Wix images use the wix:image:// scheme internally, with the file ID after it.
✅ The function uses a regular expression to extract the unique image identifier from the Wix URL.
✅ It then rebuilds the URL using the standard Wix static CDN path: https://static.wixstatic.com/media/.
Example usage to convert Wix Image to URL:
const wixImage = "wix:image://v1/abcd1234~mv2.jpg";
const httpUrl = wixImageToHttpUrl(wixImage);
console.log(httpUrl);
// Output: https://static.wixstatic.com/media/abcd1234~mv2.jpg

Comments