Categories

Magnet Link Converter

Extract magnet link hash values and convert between full links and hash values

Enter one magnet link or hash value per line

Include original input in output

Key Facts

Category
Text Processing
Input Types
textarea, select, checkbox
Output Type
text
Sample Coverage
4
API Ready
Yes

Overview

The Magnet Link Converter is a text processing tool that extracts hash values from magnet links and converts between full magnet links and their hash identifiers. It supports batch processing and customizable output formats for efficient handling of torrent-related data.

When to Use

  • When you have a list of magnet links and need to extract their hash values for indexing, sharing, or duplicate checking.
  • When you possess hash values and want to generate full magnet links to initiate downloads or share with others.
  • When you need to convert magnet link data into a specific format like JSON for use in scripts, APIs, or applications.

How It Works

  • Paste or type magnet links or hash values into the input field, with each entry on a new line.
  • Select the conversion direction: extract hash from links or generate links from hashes.
  • Optionally, choose to preserve the original input and select the output format (hash only, full link, or JSON).
  • Process the inputs to receive the converted results instantly in the chosen format.

Use Cases

Extracting hash values from magnet links for database storage or quick reference in torrent management systems.
Generating magnet links from hash values to share on forums, websites, or with peers for easy downloading.
Converting magnet link data to JSON format for integration with automated scripts, APIs, or other software tools.

Examples

1. Extract Hashes for Torrent Cataloging

Torrent community moderator
Background
You manage a forum where users share magnet links, and you need to extract hash values to organize and deduplicate entries in a database.
Problem
Manually parsing each magnet link to find the hash is slow and error-prone, especially with hundreds of links.
How to Use
Paste the magnet links into the input field, set the conversion direction to 'Extract Hash', and choose 'Hash Only' as the output format.
Outcome
A list of hash values is generated, allowing you to efficiently update the catalog and identify duplicates.

2. Generate Links for Open-Source Distribution

Software developer
Background
You have a list of torrent hashes for open-source software releases and want to provide magnet links on your project website for easy access.
Problem
Constructing full magnet links manually requires knowledge of the magnet URI scheme and is tedious for multiple hashes.
How to Use
Input the hash values, select 'Generate Link' as the conversion direction, and output as 'Full Link'.
Outcome
Complete magnet links are produced, which can be directly embedded on the website for users to download the software.

Try with Samples

text, hash

Related Hubs

FAQ

What is a magnet link hash?

A magnet link hash is a unique identifier, typically a SHA-1 hash, used in BitTorrent to locate and verify torrent content.

Can I process multiple magnet links or hashes at once?

Yes, the tool supports batch processing; enter one magnet link or hash per line in the input field.

What output formats are available?

You can output hash values only, full magnet links, or JSON formatted data, depending on your needs.

How do I generate a magnet link from a hash?

Select the 'Generate Link' conversion direction and input the hash values; the tool constructs the full magnet link automatically.

Is the original input included in the output?

You can enable the 'Preserve Original Input' option to include the original entries alongside the converted results.

API Documentation

Request Endpoint

POST /en/api/tools/magnet-link-converter

Request Parameters

Parameter Name Type Required Description
inputText textarea Yes Enter one magnet link or hash value per line
direction select No -
preserveOriginal checkbox No Include original input in output
outputFormat select No -

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-magnet-link-converter": {
      "name": "magnet-link-converter",
      "description": "Extract magnet link hash values and convert between full links and hash values",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=magnet-link-converter",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]