About OMM
OMM (the CCSDS Orbit Mean-Elements Message) carries the same SGP4 mean elements as a TLE, as named fields instead of fixed columns, with no five-digit limit on catalogue numbers and four-digit years. The output uses the keywords CelesTrak publishes: OBJECT_NAME, OBJECT_ID, EPOCH, MEAN_MOTION, ECCENTRICITY, INCLINATION, RA_OF_ASC_NODE, ARG_OF_PERICENTER, MEAN_ANOMALY, NORAD_CAT_ID, BSTAR and the rest, with REF_FRAME TEME and MEAN_ELEMENT_THEORY SGP4.
Going the other way, catalogue numbers over 99999 are written in Alpha-5 (A0000 is 100000), the only way to fit them into a TLE, and both checksums are calculated. Since July 2026 new objects have six-digit numbers: see what the 100,000 limit means for your code.
Every direction
The same converter reads any of the three and writes any of the three. TLE and OMM convert directly. OEM is written by propagating with SGP4, and read by fitting SGP4 elements to the states. An OEM can also be re-written in another frame without fitting. The TLE to OMM, TLE to OEM and OEM to TLE pages are the same tool, starting with a different output.
Check element sets first with the TLE checker, or read how to read a TLE.