If you need to replace an o-ring in any application if at all possible use the manufacturer's part. Next best thing is find out the actual "dash size" of the o-ring.
It's next to impossible to measure an o-ring accurately using contact devices like a caliper or mic because the rubber moves. Plus if you are measuring a used part it may have swollen or shrank in service.
A typical o-ring seal joint design will compress the o-ring cross section 20%. One common o-ring cross section diameter is .103". And 20% of .103" = .021" so there is not much room for error and still have a reliable seal.
An o-ring that is too large on either cross section or inside diameter may seal at first but the high strain caused by having 10 lb of stuff in a 5 lb bag may cause the o-ring to split later on.
You can get away with eyeballing a used o-ring and picking a replacement out of a box but it is a crapshoot. On my job we had a $200K 2-axis, non-contact coordinate measuring machine used for nothing but o-rings.
The other thing to remember is the o-ring is only 1/3 of the seal joint. There are two metal parts involved and if they are out of flat or not parallel it does not take much to use up a chunk of that .021" squeeze on the o-ring.
When installing an o-ring on a shaft do not "roll" it down the shaft like putting a rubber band on a roll of paper. If the o-ring gets spiraled when installed it is just a matter of time before it splits.
If you pick the wrong type of rubber the o-ring will fail - get hard as a rock, or get soft/dissolve, or swell up to double size....etc.
Here is an AS568 o-ring size chart.
Interactive standard o-ring size chart to find Parker and AS568 o-ring size dimensions. Order Online millions of o-ring sizes are in-stock
www.marcorubber.com
Japan uses a JIS o-ring standard.
www.allorings.com