I second @alexcleac's point about NextCloud. You can use a free provider rather than self-hosting of course. I use Woelkli who give 1gb of free space, and then I use Carnet as my note taking app on my phone. I've heard good things about Joplin and Turtl too. Also listed here:
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!