HOME      NEWS      MAP

PlantUML Text Encoding

PlantUML uses a special encoding to transform a uml text description like:
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
into
UDfppCbCJbNGjLDmoa-oKd0iBSb8pIl9J4uioSpFKmXABInDBIxXvG9AAkW25Jc2L6DHLboGdrUS2W3B6nef
The advantage of the last encoding is that it is easier to use in URL.

To achieve such an encoding, the text diagram is:

  1. Encoded in UTF-8
  2. Compressed using Deflate algorithm
  3. Reencoded in ASCII using a transformation close to base64

You can use -encodeurl or -decodeurl in the command line flags to encode or decode the text.

You will find here some implementation of this encoder: