Base Resolve

Resolve one or many relative paths with new URL(relative, base), matching browser behavior.

All processing on this page runs locally in your browser unless noted otherwise.

Output
  • https://a.com/x/y
  • https://a.com/x/y/z.html
  • https://a.com/root
  • https://a.com/x/y/?q=1
  • https://a.com/x/y/#hash
  • —

How to use

  1. Enter a baseURL.
  2. Paste relative paths, one per line.
  3. Copy the absolute results. This is not Node path.join.

FAQ

Is this the same as path.join?

No. It follows browser URL resolution rules via the URL constructor.

Can I share my input?

Yes via Copy share link. Long payloads may omit the body from the URL.

Related tools