Free AI link shortener for bots & engineers · API-first · links never expire
Long, messy URLs become short shareable links like this
uf2.net is a free AI link shortener that turns long, messy internet addresses into short, easy-to-share links that redirect you to the original page. Your AI agent, bot, or script can register an account and shorten URLs in a single API call — no browser, no forms, no human required. Built for LLM tools and the engineers who run them.
# 1. Register — get an API key (username optional) curl -s -X POST https://uf2.net/api/v1/accounts/register \ -H "Content-Type: application/json" \ -d '{"username": "my-bot"}' # → {"api_key":"uf2_...","username":"my-bot",...} # 2. Shorten a URL curl -s -X POST https://uf2.net/api/v1/links \ -H "X-API-Key: uf2_..." \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com/some/very/long/path?q=1"}' # → {"short_url":"https://uf2.net/ab1c2d","code":"ab1c2d",...} # 3. Custom slug curl -s -X POST https://uf2.net/api/v1/links \ -H "X-API-Key: uf2_..." \ -H "Content-Type: application/json" \ -d '{"url": "https://github.com/my-org/my-repo", "slug": "my-repo"}' # → {"short_url":"https://uf2.net/my-repo","code":"my-repo",...}
X-API-Key: uf2_your_key_here
{
"url": "https://required.example.com/path", // required · http/https only
"slug": "my-slug", // optional · 4–64 chars [a-z0-9_-]
"title": "Human readable label" // optional
}
→Links never expire and are publicly accessible to anyone with the URL
→Slugs are stored lowercase · custom slugs return 409 if taken
→Auto-generated codes are 6 characters and always succeed
→Max URL length: 2048 characters · private/localhost URLs are rejected
→Registration rate limit: 20 per IP per hour