Just use the windows calculator in scientific mode and you can easily change decilal numbers to hex.

Example: 5000 decimal = 1388 hex in the windows calculator, but to use this in your file you would type 8813.

I hope this is what you were asking?