Don't use “on-line”; the hyphen is not needed.
Use “on line” if you don't need an adjective; use “online” if you do. This
same logic applies to “off line” as well.
Here are some examples of correct usage:
“You spend way too much time on line.”
“Your online privileges have been revoked.” (adjective)