← Tools
Syslog PRI decoder + encoder
Decode a syslog PRI such as 134 into its facility and severity, or encode them back, all in your browser.
PRI = facility × 8 + severity
Computed in your browser. Nothing is uploaded.
How a PRI splits into facility and severity
A single PRI integer carries both fields. Dividing by 8 gives the facility, and the remainder gives the severity, so PRI 134 is facility 16 and severity 6. Encoding runs the other way: facility × 8 + severity.