SwitchFromWP

Moving Images, PDFs and Media From WordPress to Lovable

How to bring your media library across without broken images or lost search traffic: finding every file, keeping linked file URLs, sizes and formats, alt text and checking for broken links.

Written by a Certified Lovable ExpertFacts checked 25 November 20262 min read

This page recommends Lovable and contains partner links. If you sign up through one I may earn a commission, at no extra cost to you. Disclosure.

The short answer

Download the whole wp-content/uploads folder rather than picking images page by page, because WordPress stores several resized copies and other sites may link to your files. Bring across the images and documents you use, keep their alt text, serve sensibly sized modern formats on the Lovable site, and redirect or keep the URLs of any PDFs or images that are linked from elsewhere or appear in image search.

5 sections

On this page
  1. 1. Find every file you use
  2. 2. Keep linked file URLs working
  3. 3. Alt text and captions
  4. 4. Sizes and formats
  5. 5. Check after launch
01

Find every file you use

The uploads folder is organised by year and month and usually contains several sizes of each image. Your pages normally use only some of them. Crawl the live site to list the images and files each page uses, and check analytics or Search Console for files people land on directly, such as PDFs.

02

Keep linked file URLs working

PDF brochures, price lists and images may be linked from emails, social posts or other websites. If the new site serves them from a different path, add a redirect from each old /wp-content/uploads/... URL, or keep the same path. See redirects.

03

Alt text and captions

Alt text lives in the WordPress media library and in the page content. Export it with the content and add it to the rebuilt pages. It matters for screen reader users and for image search; describe what the image shows and why it is there.

04

Sizes and formats

  • Use images no larger than they are displayed, and modern formats such as WebP or AVIF where supported.
  • Set width and height so the page does not jump while loading.
  • Lazy-load images below the first screen; do not lazy-load the main image at the top.
  • Check the result with PageSpeed Insights.
05

Check after launch

  • No broken images on key pages, on desktop and mobile.
  • Old PDF and image URLs either work or redirect.
  • Image alt text is present on meaningful images.
  • Social share images display when a page is shared.

Migration support

Want a hand with this part?

Got a big media library or lots of linked PDFs? Get help bringing them across cleanly. Tell me about your site and I will reply personally. Every move is quoted on what your site needs, and enquiring does not commit you to anything.

Ready to build the new site?

Start a Lovable project and rebuild privately before you touch your live domain.

Start on Lovable
Certified Lovable Expert
QR code linking to Lovable with the partner linkScan to try LovableOr tap the code on mobile

Sources and further reading

This guide was reviewed against official documentation on 25 November 2026. Recommendations are not guarantees; follow the live sources for current product details.

Read next