Function Updated 17 Oct 2026
guid2()
Creates a new random GUID in a short, URL-safe Base64 format: 22 characters from A–Z, a–z, 0–9, - and _. Only available as docly.guid2().
Parameters
This function takes no parameters.
Returns
A random GUID as a 22-character string.
Example
Mixed HTML (or any text file) with inline JavaScript between hash signs.
#docly.guid2()#The template above produces this output:
sQvhbfBMCU-lutU9uCzoKQ