Skip to content

Text to URL

Build a complete, valid URL from text and parameters.

Quick Tool Overview

Text to URL builds a complete address from a base, a path slugified from your text, and query parameters encoded individually — because the three parts have different encoding rules and running one encoder over the whole thing is what breaks links.

What it does
Builds a valid, correctly encoded URL
You give it
A base address, path text and parameters
You get back
The assembled URL, parsed and validated
Best for
Campaign links, API calls and share URLs
Text Tools Free, unlimited use No sign-up Runs in your browser

About the Text to URL

A URL has three parts that each need different encoding, and getting them confused is the most common source of broken links. The path takes a slug. The query values take full percent-encoding. The fragment takes something in between. A single encodeURIComponent over the whole thing destroys it.

This builds the URL properly. The path is slugified from your text; the query parameters are taken as key and value pairs and each value is encoded on its own; the fragment is handled separately. The result is shown assembled and validated, with its length checked against the practical limits browsers and servers enforce. It is the tool for building a tracked campaign link, an API call or a share URL without guessing.

Key features of the Text to URL

Each part encoded correctly

Path as a slug, query values fully escaped, fragment separately — the distinction that keeps a URL working.

Validated with the real parser

The finished URL goes through the browser's own URL parser, so malformed results are reported.

Length checked

Warned past 2,000 characters, which is the practical ceiling older browsers and servers enforce.

Parameters one per line

Key=value pairs, each value encoded on its own so an ampersand inside one does not split it.

Lowercase paths by default

Because paths are case-sensitive, and mixed case quietly creates two URLs for one page.

How to use the Text to URL

  1. 1

    Set the base address

    The scheme and host, such as https://example.com.

  2. 2

    Enter the path text

    A title or phrase, which is slugified into a clean path.

  3. 3

    Add query parameters

    One key=value pair per line; each value is encoded on its own.

  4. 4

    Copy the finished URL

    Assembled, validated and checked against the practical length limit.

Frequently asked questions

Because they have different rules. A slash is structure in a path and data in a query value. Encoding the whole URL at once turns the structural characters into escapes and breaks it entirely.

Reviews of the Text to URL

What people who use the Text to URL think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Text to URL. It takes half a minute and no account.

Write the first review

More text tools