Mind Map Maker from Indented Text
Operator: Abdulla Al Fahad. How tools are built and checked
Most of the work in drawing a mind map is deciding where each box goes, and an outline already holds that answer in its indentation. Here the outline is the model: a line indented under another becomes its child, and the map is redrawn as you type, with each top-level branch in its own colour.
Key features
- Three layouts: radial, left to right, and both sides of the centre with the branches split by size
- Click a node, or press Enter on it, to fold its branch into a +N badge; buttons expand all, fold all, or show 1 or 2 levels
- One colour per top-level branch from a 12-colour palette, each changeable with a colour picker, with paler tints for descendants
- Indent and Outdent buttons and Ctrl+] and Ctrl+[ for the selected lines, so the Tab key still moves focus
- Import OPML 2.0 and FreeMind .mm files; export OPML, FreeMind, plain outline text, SVG, PNG and PDF
- Up to 1,000 nodes, 12 levels and 200 characters per node
How the outline becomes a map, and what OPML and .mm keep
A line's parent is the nearest earlier line with less indentation, with a tab counted as four spaces, so uneven indents still nest sensibly. A leading bullet (-, *, +), a number such as 1. or 2), or a run of # characters is stripped, and a # heading is indented by its level, so a Markdown outline pastes straight in. Lines after a # heading belong to it even when their bullets are not indented, and a heading of the same or a higher level closes that branch. When the outline has one top-level line it becomes the root; with several, they hang from a central node whose name you can set.
OPML export writes one outline element per node with the text attribute, nested to the depth of the tree, and always includes every node, folded or not. The FreeMind export writes TEXT on every node, FOLDED="true" on folded branches, POSITION on the root's children for the two-sided layout and a COLOR on each first-level node. Importing deeper than 12 levels or past 1,000 nodes leaves the rest out and says how much. Importing reads TEXT (or the text of a richcontent block) from .mm and the text or title attribute from OPML; FOLDED branches arrive folded. A file that declares a DOCTYPE or an ENTITY is refused before it is parsed, because neither format needs one and entity expansion is how a small file balloons.
The .mm export decides POSITION by a simpler rule than the picture does: the first half of the branches, rounded up, goes right and the rest left. The two-sided layout on screen instead cuts where the two sides are closest in leaf count, so for an uneven outline the two can differ.
In the radial layout each branch receives an angle in proportion to its number of visible leaves, and each ring is pushed outward until the nodes at that depth no longer overlap along the circle. The tree layouts centre every parent on its children and align boxes by depth into columns.
How it works
Text is wrapped to 200 to 230 px, depending on depth, using the browser's own text measurements, then boxes are sized to their lines. The same positions feed the on-screen map and every export, so what you see is what the SVG holds.
Folding changes only what is drawn; the outline text and the OPML export are unaffected.
Typical uses
- A student pastes a lecture outline of 60 lines and folds to two levels to get a one-page revision map, then unfolds one branch at a time for a second picture.
- A team lead exports the planning outline as .mm for a colleague who works in FreeMind and as OPML for another who uses an outliner, from the same text.
Building one
- Type or paste the outline, or drop an OPML or .mm file to replace it.
- Pick a layout and change branch colours if the defaults clash with your slides.
- Click the nodes whose branches you do not want in the picture to fold them, or use Show 1 level.
- Download SVG, PNG or PDF for the picture, or OPML or .mm to keep working in an outliner.
Example
Outline (15 lines)
Launch plan
Product
Onboarding flow
Pricing page
Annual discount
Marketing
Blog posts
Webinar series
Support
Help centre
Chat widget
Escalation rules
Finance
Budget
ForecastMap and files
15 nodes (one root, four branches and nine leaves) with Launch plan at the centre and four branches, coloured teal (Product), blue (Marketing), purple (Support) and pink (Finance). Folding Marketing shows a +2 badge on it. In the two-sided layout Product and Marketing sit on the right and Support and Finance on the left. The OPML file nests four outline levels, from Launch plan down to Annual discount, and the .mm file marks Marketing with FOLDED="true" while the OPML still lists Blog posts and Webinar series.Tips for best results
- A line indented less than the one above closes the current branch. Blank lines are ignored, so use them to keep a long outline readable.
- Use the central-node name field when the outline has several top-level lines and the default 'Mind map' is not what you want on the picture.
- Show 1 level gives a table-of-contents style overview, and exports exactly that picture.
Things to check before you rely on it
The PDF holds the map as a 2× picture, so its text cannot be selected. The SVG and the OPML keep real text.
Branches deeper than 12 levels are moved up to level 12, and text over 200 characters is shortened with an ellipsis. Each case is announced above the outline.
Common errors and how to fix them
- "This is not an OPML file: the root element is not <opml>."
- The file is XML of another kind. A FreeMind file must end in .mm or start with a <map> element; check that you did not drop a different export.
- "This file contains a DOCTYPE or ENTITY declaration. Mind map files do not need one, so it was not opened."
- The OPML or .mm file declares entities, which this page never expands. Delete the DOCTYPE line from a copy, or re-export the map from its source without one.
- "The file is not valid XML."
- The file is cut off or contains characters XML does not allow. Open it in a text editor to see where it stops, or export it again from its source.
Best practices
- Keep the outline text as the master copy and treat the pictures as exports; an indentation edit is quicker than moving boxes.
Frequently asked questions
Why do two branches that look balanced end up on the same side?
The two-sided layout splits the first-level branches in order, choosing the cut that makes the two sides closest in leaf count, so a very large first branch can sit alone against several small ones.
Does the importer keep the colours and icons from a .mm file?
No. It reads the structure, the text and the folded state. Colours are reassigned from the palette, and icons, notes and links are not carried over.
How do I get a map with several roots?
Write each root as a top-level line. They hang from one central node, because a map has a single centre; OPML and the text export list them without that node.