Hex (hexadecimal)
A text encoding that represents bytes using characters 0-9 and a-f, common for WKB strings.
Category: Formats · Also known as: hex string, hexadecimal encoding
Definition (expanded)
Hex is often used to represent binary geometry safely in text fields and logs. Many databases output WKB as a hex string. Some tools require you to specify whether an input is hex or base64.
Related terms
WKB (Well-Known Binary)A compact binary format for geometries, widely used in spatial databases and APIs.EWKB (Extended WKB)A PostGIS extension to WKB that can include SRID and additional flags.Base64A text encoding that represents bytes using A-Z, a-z, 0-9, +, and /, also used for WKB in some APIs.