To temporarily replace an image on a webpage in Chrome, right-click the image, choose Inspect, then edit the selected <img> element’s src attribute in DevTools. The replacement changes only your current page view; it does not alter the website and normally disappears when you reload.
What this method actually changes
Chrome DevTools lets you edit the live Document Object Model (DOM) that your browser is currently displaying. When you replace an image’s src, Chrome requests and displays the new image for that tab. The website’s server files, content-management system and original HTML remain unchanged.
This is useful for a mockup, a debugging check, a presentation, or testing how a layout behaves with a different image. It is not a way to edit a site you do not control, publish a change, bypass access controls, or permanently alter a page for other visitors.
Before you start
- Use the desktop version of Google Chrome. DevTools is built into Chrome.
- Have a directly reachable image URL, such as a URL ending in
.jpg,.png,.webpor another format the browser can display. - Understand that the replacement is local to your browser tab and is temporary.
Step-by-step: replace an image with Inspect
-
Open the page and select the image
Open the webpage in Chrome. Right-click the image you want to change and select Inspect. Chrome opens DevTools, usually docked to the side or bottom, with the corresponding element highlighted in the Elements panel.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.#1 Best Overall
Acer Predator Helios Neo 18 AI Gaming Laptop | Intel Core Ultra 9 Processor 275HX | NVIDIA GeForce RTX 5070 Ti | 18" WQXGA 240Hz G-SYNC | 32GB DDR5 | 2TB Gen 4 SSD | Killer Wi-Fi 6E | PHN18-72-9474- Desktop-Level Performance, Anywhere: Get legendary gaming performance with the Intel Core Ultra 9 275HX processor, delivering ultra-smooth gameplay and future-ready AI (Up to 13 NPU TOPS). Offload tasks like background removal and audio optimization to the NPU for seamless streaming and gaming, while Intel Application Optimization enhances performance on classic titles.
- Game-Changing Realism: Powered by NVIDIA Blackwell architecture, GeForce RTX 5070 Ti Laptop GPU unlocks the game changing realism of full ray tracing. Equipped with a massive level of 992 AI TOPS horsepower, the RTX 50 Series enables new experiences and next-level graphics fidelity. Experience cinematic quality visuals at unprecedented speed with fourth-gen RT Cores and breakthrough neural rendering technologies accelerated with fifth-gen Tensor Cores.
- Supreme Speed. Superior Visuals. Powered by AI: DLSS is a revolutionary suite of neural rendering technologies that uses AI to boost FPS, reduce latency, and improve image quality. DLSS 4 brings a new Multi Frame Generation and enhanced Ray Reconstruction and Super Resolution, powered by GeForce RTX 50 Series GPUs and fifth-generation Tensor Cores.
- The Ultimate in Ray Tracing and AI: NVIDIA RTX is the most advanced platform for full ray tracing and neural rendering technologies that are revolutionizing the ways we play and create. Over 700 games and applications use RTX to deliver realistic graphics and incredibly fast performance with cutting-edge AI features like DLSS Multi Frame Generation.
- Immersive Depth and Detail: At 18 inches with a 16:10 aspect ratio, the pristine WQXGA screen offering vibrant colors with up to 100% DCI-P3 operates at a fast 240Hz refresh and 3ms overdrive response time. Alongside the suite of features from NVIDIA G-SYNC and NVIDIA Advanced Optimus, you're guaranteed that whatever's on-screen is a distinct viewing delight.
You can also turn on inspect mode first. Press
Ctrl+Shift+Con Windows, Linux or ChromeOS, orCmd+Option+Con macOS, then click the image. The toolbar’s inspect-mode button performs the same selection. -
Find the image element
Look for an
<img>node in the highlighted markup. A typical element looks like this:<img class="hero" src="https://example.com/old-image.jpg" alt="Example">Some pages use a linked image, so you may initially select an enclosing
<a>element. Expand its children and select the nested<img>. If there is no<img>, the visible picture may be a CSS background or a more complex component; those cases are covered below. -
Edit the
srcattributeIn the selected
<img>node, double-click the value of thesrcattribute. Replace the old URL with the image URL you want to preview, then press Enter (or click elsewhere in the Elements panel).Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.<img class="hero" src="https://example.com/new-image.webp" alt="Example">The page should repaint with the new image. The edit is applied to the live DOM immediately; you do not need to save a file or refresh.
-
Check the result
If the image appears, inspect its dimensions and alignment in the page. You can use the Styles and Computed panels to see whether CSS is constraining its width, height, object-fit behavior or aspect ratio. These styles remain those of the original page, so a replacement with a very different shape may be cropped or stretched.
When changing src is not enough
The image is a CSS background
A decorative image may be attached to an element through CSS rather than an <img> tag. In Elements, select the element and inspect the Styles panel for a declaration such as background-image: url(...). Double-click the URL, enter the replacement URL and confirm. This is still a temporary style edit in the current page.
The page uses srcset or <picture>
Responsive images can contain srcset, sizes or multiple <source> elements inside <picture>. The browser may continue selecting a source other than the one you changed. For a predictable preview, update the active src and, when necessary, edit the relevant srcset or <source srcset> value as well.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11The image is controlled by a framework
React, Vue, Angular and other frameworks can re-render a component and put the original attribute back. You can still test the visual result, but a state update, navigation or other interaction may overwrite your manual DOM edit. To make a lasting change on a site you own, edit the component or content source in your normal development workflow.
The replacement URL does not load
Check that the URL is complete and begins with https:// when the page is HTTPS. Open the image URL in a new tab to verify it returns an image. A server may deny hotlinking, require authentication, return an HTML error page, or block the request because of its security policy. DevTools can show the request and status in the Network panel.
Rank #3
- Intel Core i9 HX Power for Elite Gaming: Dominate demanding titles with the Intel Core i9-14900HX and its 24-core hybrid architecture, delivering fast load times, high FPS, and smooth multitasking.
- GeForce RTX 5070 With Ray Tracing & DLSS 4: Powered by NVIDIA Blackwell, the RTX 5070 delivers stronger ray tracing, higher FPS, faster AI upscaling, and more responsive gameplay—ideal for competitive and cinematic gaming.
- QHD 165Hz, 100% DCI-P3 for Ultra-Clear Combat: The QHD 165Hz display reveals more detail, reduces motion blur, and boosts visibility in fast-paced games while delivering richer, more accurate colors.
- Cooler Boost 5 for Sustained Performance: Dual fans and a 5-heat-pipe share-pipe design keep the CPU and GPU cool, maintaining stable frame rates during long gaming marathons.
- 4-Zone RGB Keyboard + Full Game-Ready Ports: Customize your setup with a 4-zone RGB keyboard and highlighted WASD keys. Includes USB-C Gen 2, HDMI up to 8K, multiple USB-A ports, RJ45, Wi-Fi 6E & Hi-Res Audio.
Temporary edit versus Local Overrides
Reload the page and the original image will generally return because the DOM-tree edit was made only in memory. Chrome’s Local Overrides feature is different: it can save supported network resources locally and serve those local copies on later reloads.
Local Overrides does not make a manual Elements-panel DOM edit persistent. Chrome’s documentation states, “DevTools doesn’t save changes made in the DOM tree of the Elements panel.” To persist an image change for a website you control, change the source asset, template, CSS or content record in that site’s development workflow rather than relying on Inspect.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
| Method | What you change | Survives reload? | Typical use |
|---|---|---|---|
| Elements-panel edit | Live DOM attribute or style | No | Quick visual preview or debugging |
| Local Overrides | Supported local copy of a network resource | Yes, while the override remains enabled | Testing edited CSS, JavaScript or other supported responses |
| Site source workflow | Original files or content data | Yes, after deployment or publication | Permanent change on a site you own |
Troubleshooting common problems
“Inspect” is missing from the context menu
Use the keyboard shortcut for inspect mode and click the image. Managed devices, embedded documents or browser policies can also restrict DevTools. If DevTools will not open at all, check Chrome’s administrator or security settings.
I selected the wrong element
Activate inspect mode and move over the visible image until its highlight outline matches the picture. In Elements, use the arrow controls to expand parent and child nodes. The actual image may be nested several levels below a link, figure or component wrapper.
The new image is clipped or distorted
The original CSS may set fixed dimensions, object-fit: cover, a mask or an aspect-ratio rule. In the Styles panel, temporarily uncheck those declarations or add a test style such as object-fit: contain. These style changes are also temporary.
Rank #4
- Vibrant 15.6" FHD IPS Display: Experience stunning visuals on a large 15.6-inch Full HD (1920x1080) IPS screen. With narrow bezels and wide viewing angles, this laptop offers an immersive experience for streaming movies, online classes, or working on documents with crystal-clear detail
- Efficient Daily Performance: Powered by the Intel Celeron N4020 processor and 4GB LPDDR4 RAM, this notebook delivers reliable performance for web browsing, light multitasking, and school projects. The 128GB storage provides ample space for your essential files, photos, and apps
- Modern Connectivity & PD Fast Charge: Equipped with a versatile Type-C PD 45W port for fast charging and high-speed data transfer. Combined with Dual-Band AC WiFi and Bluetooth, you’ll enjoy a stable and fast internet connection for seamless video calls and cloud-based work
- Silent & Ultra-Portable Design: Featuring an advanced fanless cooling system, this laptop operates in total silence—perfect for libraries or late-night study sessions. Its sleek, lightweight body fits easily into backpacks, making it the ideal companion for students and commuters
- Ready for Work & Play: Pre-installed with Windows 11 Home, offering a secure and user-friendly interface. Includes a HD webcam and high-quality speakers for clear communication. A practical choice for online learning, remote work, or everyday entertainment
The page immediately restores the old image
A script may be re-rendering the component, or you may have edited a non-active responsive source. Watch the Elements panel while the page updates, then inspect srcset, <picture> sources and framework-generated markup. For a stable test, pause script execution briefly in DevTools, make the edit, and observe whether the visual issue is caused by layout or by application code.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →The replacement shows a broken-image icon
Confirm the URL by opening it directly. Check the Network panel for HTTP status, redirects and blocked requests. Use an image format supported by the browser, and avoid a URL that requires cookies or an authorization header unavailable to the page.
Refreshing did not preserve my change
That is expected for an Elements edit. Use Local Overrides for supported resource-level experiments, or edit and deploy the site’s real source for a permanent result.
Safety and responsible use
- Only change pages for testing, education, design review or other legitimate purposes.
- Do not present a locally altered screenshot as proof of what a website actually published.
- Do not use DevTools edits to impersonate another person, mislead users, or interfere with transactions.
- Remember that a local DOM edit affects your browser view, not the server or other visitors.
Or skip the browser setup
If you need repeatable screenshots rather than a one-off visual experiment, ScreenshotNeo provides a website screenshot API and MCP server. It accepts a URL and returns a PNG, JPEG, WebP or PDF. Before capture, it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups and chat widgets; each cleanup step can be turned off.
Only clean shots are billed. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits cost nothing, and the response identifies the result with X-Page-Verdict and X-Billed headers. Its MCP server includes take_screenshot, get_page_info and capture_pdf tools for Claude, Cursor and other MCP clients.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesHere is the one-call cURL version (replace the target URL and key):
Best Value
- Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
- Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
- AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
- All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
- Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo documentation for the complete parameter reference. The same request in Python is:
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)
And in Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
Every plan includes the features: full-page capture with lazy images loaded, CSS-selector element capture, dark mode, device presets or custom viewports, retina scale, PDF controls, custom CSS and JavaScript, clicks before capture, hidden selectors, selector/delay/network-idle waits, request and resource blocking, custom headers/cookies/user agent/Authorization, timezone and geolocation, transparent backgrounds, resizing, chosen TTL caching, signed links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, a usage API and an OpenAPI specification. Parameter names used by other screenshot APIs also work.
| Plan | Included shots | Price |
|---|---|---|
| Free | 1,000 per month | $0, no card |
| Starter | 3,000 | $5 |
| Growth | 15,000 | $15 |
| Pro | 60,000 | $39 |
| Scale | 250,000 | $99 |
| Business | 1,000,000 | $249 |
Yearly billing gives two months free. Create a free ScreenshotNeo account to get 1,000 screenshots a month with no card.
Recommended Free Tools
Frequently Asked Questions
Will changing an image with Inspect change the real website?
No. It changes the live DOM in your browser tab only. The server’s files and other visitors’ pages are unaffected.
Can I save an image replacement after refreshing?
Not from a direct Elements-panel DOM edit. Use a supported Local Override for resource-level testing, or change the site’s source and deploy it if you own the website.
Why does my edited image revert while I am still on the page?
A script or framework may re-render the component, or a responsive image source may be selected again. Inspect srcset, <picture> sources and the page’s update behavior.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Free tools Windows power users keep installed
One-click scans. No signup required.




