As a writer if you know what you are doing you can earn a considerable amount of money online or offline, what really matters is having the knowledge of what you are doing.Writing is really broad and you need to specify which niche you intend writing on.
As a writer, you can make money on freelancing website like Upwork by registering and posting your Portfolio on it.
You can then start applying for gigs.