Developer ToolkitFree · Bulk · Runs in your browser

Escaped URL Fixer

Turn URLs copied from JSON, API responses, logs or code, like https:\/\/example.com\/img.jpg, into clean, working links like https://example.com/img.jpg.

Paste URLs, JSON or text

One URL per line, a whole JSON object, or any text: every link inside is found and fixed. Nothing is uploaded.

Fixed URLs (5 valid)

  • https://example.com/uploads/images/profile/user_45.jpg

    Removed backslash escapes (\/ → /)

  • https://cdn.example.com/img/a%20b.png

    Removed backslash escapes (\/ → /)

  • http://example.com/p?id=7&ref=api

    Removed backslash escapes (\/ → /) · Decoded HTML entities (& → &) · Lower-cased the domain

  • https://example.com/docs/guide.pdf

    Fixed the http(s):// part · Removed double slashes in the path

  • https://www.example.org/search?q=hello%20world

    Added https://

How to use Escaped URL Fixer

  1. Paste one or more URLs, a JSON response, or any text that contains links.
  2. The tool finds every link and fixes escaped slashes, quotes, HTML entities and broken https:// parts.
  3. Copy one URL, copy them all, or download the list as a .txt file.

Features

Fixes JSON escaping
Turns https:\/\/ and double-escaped https:\\/\\/ into normal https:// links, including \u002F escapes.
Bulk & smart extraction
Paste a whole API response: every URL inside is pulled out, cleaned and checked.
Safe changes only
Reserved characters like %2F and %3F are kept, so a fixed URL still points to the same place.

Frequently asked questions

Why do URLs look like https:\/\/example.com in JSON?

JSON allows a forward slash to be written as \/. Many APIs and PHP's json_encode do this by default, so links copied from a JSON response contain backslashes that browsers can't open.

What does the tool fix?

Backslash escapes (\/ and \\/), \u002F escapes, & and other HTML entities, wrapping quotes, the "key": part of a JSON line, missing or broken https://, double slashes in the path, and spaces.

Can I fix many URLs at once?

Yes. Paste a list or a full JSON object and every URL is fixed. Turn on Remove duplicates to get each link once.

Is my data uploaded?

No. Everything runs in your browser, and nothing you paste is sent to a server.

How do I stop this in my own code?

Parse the JSON instead of copying the raw text, since JSON.parse removes the escaping. In PHP you can use json_encode($data, JSON_UNESCAPED_SLASHES).

Free, no sign-up. Your files and numbers are processed in your browser and are not uploaded.

Related tools

View all

Share this Tool

Did Escaped URL Fixer work well for you?