Random Link Generator

Random test URLs with paths, queries and fragments.

0 links

The Random Link Generator creates random URLs for testing and mock data – for example https://pixelshop.example.com/blog/482?page=17&sort=3 or http://localhost:5173/api/v1/users. Choose the kind of domain, the protocol, how deep paths go and whether to add query strings and #fragments, then generate up to hundreds of links at once.

Domain modes

  • Reserved / safe – example.com, example.org, example.net and the .test / .example top-level domains. These are reserved for documentation and testing, so they never point to someone's real site. Use this by default.
  • Realistic made-up domains – word combinations like swiftlabs.io or greenstudio.dev for mockups that need to look real.
  • localhost & IPs – localhost:3000, 127.0.0.1 and 192.168.x.x addresses for local development tests.

What developers use it for

Form and validator testing. Fill URL fields with many different shapes – deep paths, numeric IDs, several query parameters, fragments – and check your validation and error messages.

Link parsers and routers. Feed a list of URLs into your router, link-preview code or analytics parser and confirm every part (host, path, search, hash) is extracted correctly.

Seed data and mockups. Populate a database, spreadsheet or design mockup with plausible links without using real people's websites.

Documentation. Write examples with reserved domains so readers never accidentally visit a real site.

How to use

Pick a domain mode and protocol, set the maximum path depth (0 gives just the domain), switch query strings and fragments on or off, and press Generate. No repeats keeps every URL unique. Copy the list or download it as a text file.

Frequently Asked Questions

No. They're fake URLs for testing. In Reserved / safe mode they only use example.com, example.org, example.net, .test and .example, which are reserved by RFC 2606 and can never belong to a real site.

They're random word combinations and some might exist. Use them only as text in tests and mockups; for anything that could be visited or emailed, stick to the safe mode.

Yes. Every link with a protocol is a well-formed URL with a host, path, optional query string and optional fragment, so it parses with the URL API in browsers and Node.js.

Use the Random Website Generator – it suggests real, hand-picked websites to visit.