Use OAuth Scope Formatter without a complicated workflow.
OAUTH Scope Formatter is made for quick api & http tools tasks where opening a heavy app would slow you down. Paste the input, choose the option that matches your work, and use the clean result in your next step.