Relative to Absolute URL Converter

Resolve relative paths into full absolute URLs against a base URL you provide.

The Relative to Absolute URL Converter takes a base URL and a list of relative paths, then resolves each path into a complete, absolute URL. Give it a base such as https://example.com/blog/ and paths like ../images/logo.png or ./post.html, and it returns fully qualified links that will work anywhere, independent of the page they came from.

It follows the same resolution rules browsers use, so root-relative paths that start with a slash, current-directory paths that start with ./, and parent-directory paths that use ../ are all handled correctly. Absolute URLs in the list are left untouched, and anything that cannot be resolved is clearly flagged rather than silently dropped.

Everything runs locally in your browser using JavaScript. Scrapers cleaning up extracted links, developers migrating hard-coded relative references, and anyone stitching a base URL onto a batch of paths can convert an entire list at once without a script or a server round trip.

Features

  • Resolves relative paths against a base URL using the same algorithm browsers apply.
  • Handles root-relative (/path), current-directory (./path) and parent-directory (../path) references.
  • Leaves already-absolute URLs unchanged so mixed lists convert cleanly in one pass.
  • Flags any path that cannot be resolved instead of dropping it, so nothing goes missing.
  • Processes an entire list at once, one relative path per line, for fast bulk conversion.
  • Reports how many paths resolved successfully and how many were invalid.
  • Runs fully client-side, so your links and base URLs never leave the browser.

How to use Relative to Absolute URL Converter

  1. Enter the base URL, including its protocol, in the options field.
  2. Paste your relative paths into the input box, one per line.
  3. Read the resolved absolute URLs in the output, matched line for line.
  4. Look for any lines marked invalid, which indicate a path that could not be resolved.
  5. Copy the absolute URLs or download them as a text file for use elsewhere.

Benefits

  • Scrapers convert extracted relative links into absolute URLs that can be fetched or stored.
  • Developers migrate hard-coded relative references to absolute ones during a domain change.
  • Content teams fix relative links in imported HTML so they work outside the original page.
  • SEO specialists build a crawlable list of full URLs from a page's internal links.
  • Anyone testing links gets a ready-to-click set of absolute URLs from a batch of paths.
  • Because resolution is local, private URLs and internal paths stay on your device.

A relative URL only makes sense in the context of the page that contains it. A path like ../images/logo.png means go up one directory from the current location, so the same relative path resolves to different absolute URLs depending on where it appears. Supplying a base URL removes that ambiguity and produces a link that stands on its own.

Resolution has precise rules. A leading slash means resolve from the site root, ./ means the current directory, and each ../ climbs one level up the path. Getting these right by hand is error-prone, especially across a long list, which is why delegating the work to the same logic browsers use avoids subtle mistakes.

All conversion happens in your browser with JavaScript, so your base URL and paths are never transmitted or stored, keeping internal links private. If the base URL is missing its protocol or a path is malformed, the tool flags the problem clearly so you can correct the input rather than ending up with a broken link.

Frequently asked questions

Related tools