Base64 Shortlinks

Base64 Shortlinks

By jwz
Details
View on WordPress

The default WordPress “shortlink” URLs look like this: http://www.example.com/blog/?p=123, where “123” is actually a 7+ digit decimal number. This plugin shrinks your shortlinks by encoding that number into only 4 characters, and using the abbreviated URL prefix of your choice.

On my site, the default shortlinks are 35 bytes long, even though I have a very short domain name. This plugin shrinks them to 21 total bytes, which is comparable to most public URL-shortener services, and better than many.

E.g., this: http://www.jwz.org/blog/?p=13240780
becomes: http://jwz.org/b/ygnM

This doesn’t affect your (long) permalinks: those can still be in whatever format you like.

Details

Plugin code:
base64-shortlinks
Plugin version:
1.7
Author:
Outdated:
No
WP version:
2.7 or higher
PHP version:
or higher
Test up to WP version:
6.8.2
Total installations:
10
Last updated:
2025-07-30
Rating:
Times rated:
0
shortlinks